assertAll

Asserts that all assertions pass.

@safe
void
assertAll
(
void delegate
()
@safe[]
assertions...
)

Throws

AssertAllException otherwise

Examples

assertAll(
    assertTrue(true),
    assertFalse(false),
);

auto exception = expectThrows!AssertException(assertAll(
    assertTrue(false),
    assertFalse(true),
));

assertTrue(exception.msg.canFind("2 assertion failures"), exception.msg);

Meta