beNull

Nullable!int().should.beNull tests that the Nullable is null. should.not.beNull tests the reverse.

void
beNull
(
Should
)
(
Should should
,
string file = __FILE__
,
size_t line = __LINE__
)
if (
isInstanceOf!(ShouldType, Should)
)

Examples

Nullable!int().should.beNull;
Nullable!int(5).should.not.beNull;
Object.init.should.beNull;

Meta