-
Notifications
You must be signed in to change notification settings - Fork 158
GreaterThanConstraint
Chris Maddock edited this page Mar 10, 2016
·
5 revisions
GreaterThanConstraint tests that one value is greater than another.
```C# GreaterThanConstraint(object expected) ``` ```C# Is.GreaterThan(object expected) Is.Positive // Equivalent to Is.GreaterThan(0) ``` ```C# ...Using(IComparer comparer) ...Using(IComparer comparer) ...Using(Comparison comparer) ``` ```C# 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