- 
                Notifications
    
You must be signed in to change notification settings  - Fork 161
 
AnyOfConstraint
        Chris Maddock edited this page Dec 30, 2018 
        ·
        2 revisions
      
    AnyOfConstraint is used to determine whether a value is equal to any of the expected values.
AnyOfConstraint(object[] expected)Is.AnyOf(object[] expected)...Using(IComparer comparer)
...Using<T>(IEqualityComparer comparer)
...Using<T>(Func<T, T, bool>)
...Using<T>(IComparer<T> comparer)
...Using<T>(Comparison<T> comparer)
...Using<T>(IEqualityComparer<T> comparer)int[] iarray = new int[] { 0, -1, 42, 100 }
Assert.That(42, Is.AnyOf(iarray));
Assert.That(myOwnObject, Is.AnyOf(myArray).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