Assertion.not

This function negates the wrapper assertion. With it, one can express fluent assertions without much effort.

struct Assertion(T)
@nogc @safe pure nothrow
not
()

Examples

10.should.not.equal(2); // OK
10.should.not.equal(10); // Throws an Exception "expected 10 not to be 10"

Meta