Skip to content
grahamrhay edited this page Nov 11, 2010 · 1 revision

#IsNot

Inverts a matcher:

    [Test]
    public void IsNot()
    {
        var isNotCat = new IsNot(new IsEqual("cat"));

        Assert.That("mat", isNotCat);
        // or alternatively
        Assert.That(1, Is.Not(2));
    }
Clone this wiki locally