-
Notifications
You must be signed in to change notification settings - Fork 158
AllItemsConstraint
jnm2 edited this page Jun 14, 2017
·
4 revisions
AllItemsConstraint applies a constraint to each item in an IEnumerable
, succeeding only if all of them succeed. An exception is thrown if the actual value passed does not implement IEnumerable
.
AllItemsConstraint(Constraint itemConstraint)
Is.All...
Has.All...
int[] iarray = new int[] { 1, 2, 3 };
string[] sarray = new string[] { "a", "b", "c" };
Assert.That( iarray, Is.All.Not.Null );
Assert.That( sarray, Is.All.InstanceOf<string>() );
Assert.That( iarray, Is.All.GreaterThan(0) );
Assert.That( iarray, Has.All.GreaterThan(0) );
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