assertAll

Asserts that all assertions pass.

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

Throws

AssertAllException otherwise

Examples

1 assertAll(
2     assertTrue(true),
3     assertFalse(false),
4 );
5 
6 auto exception = expectThrows!AssertException(assertAll(
7     assertTrue(false),
8     assertFalse(true),
9 ));
10 
11 assertTrue(exception.msg.canFind("2 assertion failures"), exception.msg);

Meta