Skip to content

IsLessThanOrEqualTo

grahamrhay edited this page Dec 18, 2010 · 1 revision

#IsLessThanOrEqualTo

Matches if an object is less than or equal to another (must implement IComparable):

    [Test]
    public void IsEqual()
    {
        Assert.That(4, Is.LessThanOrEqualTo(5));
        Assert.That(4, Is.LessThanOrEqualTo(4));
    }
Clone this wiki locally