AssertException otherwise
Object foo = new Object(); Object bar = new Object(); assertSame(foo, foo); auto exception = expectThrows!AssertException(assertSame(foo, bar)); assertEquals("expected same: <object.Object> was not: <object.Object>", exception.msg);
Asserts that the values are the same.