interface IAssertionGroup : IAssertion (source)
The base interface for IAssertion groups, providing a default implementation for IAssertion.holds
which returns true if all its assertions hold.
| assertions |
abstract val assertions: List<IAssertion>
The assertions of this group, which are defined for subject. |
| name |
abstract val name: String
The name of the group. |
| subject |
abstract val subject: Any
The subject for which the assertions are defined. |
| holds |
open fun holds(): Boolean
Holds if all its assertions hold. |
| AssertionGroup |
data class AssertionGroup : IAssertionGroup
Represent a group of IAssertions identified by a name and an associated subject. |