abstract fun createAndAddAssertion(description: String, expected: Any, test: () -> Boolean): IAssertionPlant<T>
(source)
Creates an IAssertion based on description, expected and test and adds it to the plant.
description
- The description of the assertion, e.g., is smaller than
.
expected
- The expected value, e.g., 5
test
- Indicates whether the assertion holds or fails.
AssertionError
- Might throw an AssertionError in case IAssertions are immediately evaluated.
Return
This plant to support a fluent-style API.