inline val throwIfNoAssertionIsCollected: ThrowingAssertionCollectorForExplanation
(source)
Choosing this option causes the AssertionCollector to throw an IllegalArgumentException in case not a single Assertion was collected.
Use doNotThrowIfNoAssertionIsCollected if such use cases should be ignored (no exception should be thrown).