abstract fun formatGroup(assertionGroup: IAssertionGroup, methodObject: AssertionFormatterMethodObject, formatAssertions: (AssertionFormatterMethodObject, (IAssertion) -> Unit) -> Unit): Unit
Formats the given assertionGroup and appends the result to the sb of the given methodObject.
Formatting an IAssertionGroup makes up of two parts (where the first might be skipped):
This function should be in sync with canFormat. If canFormat returns true
then this method should be able
to format the given assertionGroup without problems. If canFormat returns false
then this method should
throw an UnsupportedOperationException.
assertionGroup
- The assertion group which should be formatted.
methodObject
- The method object which contains inter alia the sb
to with the result will be appended.
formatAssertions
- The function which should be called to format the
assertions of the given assertionGroup.
It itself expects a AssertionFormatterMethodObject which is used for the child assertions and a function
which formats the child IAssertions in the context of the given assertionGroup.