fun <T, G, R> <ERROR CLASS><G, R>.collectAssertions(expect: <ERROR CLASS><T>, assertionCreator: <ERROR CLASS><T>.() -> Unit): <ERROR CLASS>
Collects the assertions assertionCreator creates and uses them as AssertionGroup.assertions.