-
Notifications
You must be signed in to change notification settings - Fork 154
LessThanConstraint
Chris Maddock edited this page May 27, 2017
·
5 revisions
LessThanConstraint tests that one value is less than another.
LessThanConstraint(object expected)
Is.LessThan(object expected)
Is.Negative // Equivalent to Is.LessThan(0)
...Using(IComparer comparer)
...Using<T>(IComparer<T> comparer)
...Using<T>(Comparison<T> comparer)
Assert.That(3, Is.LessThan(7));
Assert.That(myOwnObject,
Is.LessThan(theExpected).Using(myComparer));
Assert.That(-5, Is.Negative);
Copyright (c) 2018 The NUnit Project - Licensed under CC BY-NC-SA 4.0
-
NUnit
-
Release Notes
-
License
- Getting Started
- Writing Tests
- Running Tests
- Extending NUnit
- Technical Notes
-
Release Notes
- NUnit Xamarin Runners
- VS Test Adapter
- VS Test Generator
- NUnit Analyzers