notNull

Value must not be NULL

Members

Functions

check
bool check(T actual)
Undocumented in source. Be warned that the author may not have intended to support it.

Static variables

errorMessage
string errorMessage;
Undocumented in source.

Examples

assert(!test!notNull(null));
assert(test!notNull(""));

auto o = new Object();
assert(test!notNull(o));
Object o2 = null;
assert(!test!notNull(o2));

int* i = null;
assert(!test!notNull(i));

int* i2 = new int(10);
assert(test!notNull(i2));

Meta