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

#IsAnything

Matches anything:

    [Test]
    public void AllOf()
    {
        var matchesAnything = new IsAnything<object>();
        const string actual = "the cat sat on the mat";

        Assert.That(actual, matchesAnything);
        // or alternatively
        Assert.That(actual, Is.Anything());
    }
Clone this wiki locally