Asserts that a condition is true.
AssertException otherwise
1 assertTrue(true); 2 assertTrue("foo" in ["foo": "bar"]); 3 4 auto exception = expectThrows!AssertException(assertTrue(false)); 5 6 assertEquals("Assertion failure", exception.msg);
See Implementation
Asserts that a condition is true.