class BasicAssertion : IBasicAssertion
A default implementation for IBasicAssertion which lazily evaluates holds.
BasicAssertion(description: ITranslatable, representation: Any, holds: Boolean)
Constructor overload with an eager BasicAssertion.holds. BasicAssertion(description: ITranslatable, expected: Any, test: () -> Boolean)
Constructor overload with a lazy BasicAssertion.holds. |
val description: ITranslatable
The complementary description to the expected result such as |
|
val expected: Any
The expected result. |
fun holds(): Boolean
Indicates whether the assertion holds or not. |