GreaterThanOrEqual Constraint
GreaterThanOrEqualConstraint
tests that one value is greater than or equal to another.
Constructor
GreaterThanOrEqualConstraint(object expected)
Syntax
Is.GreaterThanOrEqualTo(object expected)
Is.AtLeast(object expected)
Modifiers
...Using(IComparer comparer)
...Using<T>(IComparer<T> comparer)
...Using<T>(Comparison<T> comparer)
...Within(object tolerance)
Examples of Use
Assert.That(7, Is.GreaterThanOrEqualTo(3));
Assert.That(7, Is.AtLeast(3));
Assert.That(7, Is.GreaterThanOrEqualTo(7));
Assert.That(7, Is.AtLeast(7));
Assert.That(myOwnObject, Is.GreaterThanOrEqualTo(theExpected).Using(myComparer));
Assert.That(myDateTime, Is.GreaterThanOrEqualTo(expectedDateTime).Within(TimeSpan.FromSeconds(1)))