abstract fun formatNonGroup(assertion: IAssertion, methodObject: AssertionFormatterMethodObject): Unit
Formats the given assertion and appends the result to the sb of the given methodObject.
The callee is responsible that not an IAssertionGroup is passed to this function for which the outcome is unknown/unspecified. Call formatGroup to format an IAssertionGroup. Call format in case you do not know what type assertion is.
This function should be in sync with canFormat. If canFormat returns true
then this method should be able
to format the given assertion without problems. If canFormat returns false
then this method should throw
an UnsupportedOperationException.
assertion
- The assertion which should be formatted (not an IAssertionGroup).
methodObject
- The method object which contains inter alia the sb
to with the result will be appended.
UnsupportedOperationException
- in case this IAssertionFormatter cannot format the given assertion
(canFormat returns false
).