Skip to content
grahamrhay edited this page Nov 11, 2010 · 2 revisions

#AllOf

Matches if null:

    [Test]
    public void IsNull()
    {
        var isNull = new IsNull();
        var anObject = null;

        Assert.That(anObject, isNull);
        // or alternatively
        Assert.That(anObject, Is.Null());
        Assert.That("aString", Is.NotNull());
    }
Clone this wiki locally