-
Notifications
You must be signed in to change notification settings - Fork 158
GreaterThanConstraint
jnm2 edited this page Jun 14, 2017
·
5 revisions
GreaterThanConstraint tests that one value is greater than another.
GreaterThanConstraint(object expected)
Is.GreaterThan(object expected)
Is.Positive // Equivalent to Is.GreaterThan(0)
...Using(IComparer comparer)
...Using<T>(IComparer<T> comparer)
...Using<T>(Comparison<T> comparer)
Assert.That(7, Is.GreaterThan(3));
Assert.That(myOwnObject,
Is.GreaterThan(theExpected).Using(myComparer));
Assert.That(42, Is.Positive);
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