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

#IsEqual

Compares two objects:

    [Test]
    public void IsEqual()
    {
        var isOne = new IsEqual("one");
        Assert.That("one", isOne);
        // or alternatively
        Assert.That("one", Is.EqualTo("one"));
        Assert.That(1 == 1, Is.True());
        Assert.That(1 == 2, Is.False());
    }
Clone this wiki locally