-
Notifications
You must be signed in to change notification settings - Fork 158
RangeConstraint
Chris Maddock edited this page Jul 13, 2016
·
6 revisions
RangeConstraint tests that a value is in an (inclusive) range.
```C# RangeConstraint(IComparable from, IComparable to) ``` ```C# Is.InRange(IComparable from, IComparable to) ``` ```C# ...Using(IComparer comparer) ...Using(IComparer comparer) ...Using(Comparison comparer) ``` ```C# int[] iarray = new int[] { 1, 2, 3 }Assert.That( 42, Is.InRange(1, 100) ); Assert.That( iarray, Is.All.InRange(1, 3) ); Assert.That(myOwnObject, Is.InRange(lowExpected, highExpected).Using(myComparer));
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