-
Notifications
You must be signed in to change notification settings - Fork 154
LessThanConstraint
Charlie Poole edited this page Jan 31, 2016
·
5 revisions
LessThanConstraint tests that one value is less than another.
```C# LessThanConstraint(object expected) ``` ```C# Is.LessThan(object expected) Is.Negative // Equivalent to Is.LessThan(0) ``` ```C# ...Using(IComparer comparer) ...Using(IComparer<T> comparer) ...Using(Comparison<T> comparer) ``` ```C# 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