iOS Guides | Samples

NUnit.Framework.Is Class

Helper class with properties and methods that supply a number of constraints used in Asserts.

See Also: Is

Syntax

public class Is

Requirements

Namespace: NUnit.Framework
Assembly: NUnitLite (in NUnitLite.dll)
Assembly Versions: 0.6.0.0, 1.0.0.0

The members of NUnit.Framework.Is are listed below.

See Also: Object

Public Constructors

Is()

Public Properties

[read-only]
static
AllConstraintExpression. Returns a ConstraintExpression, which will apply the following constraint to all members of a collection, succeeding if all of them succeed.
[read-only]
static
BinarySerializableBinarySerializableConstraint. Returns a constraint that tests whether an object graph is serializable in binary format.
[read-only]
static
EmptyEmptyConstraint. Returns a constraint that tests for empty
[read-only]
static
FalseFalseConstraint. Returns a constraint that tests for False
[read-only]
static
NaNNaNConstraint. Returns a constraint that tests for NaN
[read-only]
static
NegativeLessThanConstraint.
[read-only]
static
NotConstraintExpression. Returns a ConstraintExpression that negates any following constraint.
[read-only]
static
NullNullConstraint. Returns a constraint that tests for null
[read-only]
static
OrderedCollectionOrderedConstraint. Returns a constraint that tests whether a collection is ordered
[read-only]
static
PositiveGreaterThanConstraint.
[read-only]
static
TrueTrueConstraint. Returns a constraint that tests for True
[read-only]
static
UniqueUniqueItemsConstraint. Returns a constraint that tests whether a collection contains all unique items.
[read-only]
static
XmlSerializableXmlSerializableConstraint. Returns a constraint that tests whether an object graph is serializable in xml format.

Public Methods

static
AssignableFrom(Type) : AssignableFromConstraint
Returns a constraint that tests whether the actual value is assignable from the type supplied as an argument.
static
AssignableFrom<T>() : AssignableFromConstraint
Returns a constraint that tests whether the actual value is assignable from the type supplied as an argument.
static
AssignableTo(Type) : AssignableToConstraint
Returns a constraint that tests whether the actual value is assignable from the type supplied as an argument.
static
AssignableTo<T>() : AssignableToConstraint
Returns a constraint that tests whether the actual value is assignable from the type supplied as an argument.
static
AtLeast(Object) : GreaterThanOrEqualConstraint
Returns a constraint that tests whether the actual value is greater than or equal to the suppled argument
static
AtMost(Object) : LessThanOrEqualConstraint
Returns a constraint that tests whether the actual value is less than or equal to the suppled argument
static
EqualTo(Object) : EqualConstraint
Returns a constraint that tests two items for equality
static
EquivalentTo(IEnumerable) : CollectionEquivalentConstraint
Returns a constraint that tests whether the actual value is a collection containing the same elements as the collection supplied as an argument.
static
GreaterThan(Object) : GreaterThanConstraint
Returns a constraint that tests whether the actual value is greater than the suppled argument
static
GreaterThanOrEqualTo(Object) : GreaterThanOrEqualConstraint
Returns a constraint that tests whether the actual value is greater than or equal to the suppled argument
static
InRange<T>(T, T) : NUnit.Framework.Constraints.RangeConstraint<T>
static
InstanceOf(Type) : InstanceOfTypeConstraint
Returns a constraint that tests whether the actual value is of the type supplied as an argument or a derived type.
static
InstanceOf<T>() : InstanceOfTypeConstraint
Returns a constraint that tests whether the actual value is of the type supplied as an argument or a derived type.
static
LessThan(Object) : LessThanConstraint
Returns a constraint that tests whether the actual value is less than the suppled argument
static
LessThanOrEqualTo(Object) : LessThanOrEqualConstraint
Returns a constraint that tests whether the actual value is less than or equal to the suppled argument
static
SameAs(Object) : SameAsConstraint
Returns a constraint that tests that two references are the same object
static
SamePath(String) : SamePathConstraint
Returns a constraint that tests whether the path provided is the same as an expected path after canonicalization.
static
SamePathOrUnder(String) : SamePathOrUnderConstraint
Returns a constraint that tests whether the path provided is the same path or under an expected path after canonicalization.
static
StringContaining(String) : SubstringConstraint
Returns a constraint that succeeds if the actual value contains the substring supplied as an argument.
static
StringEnding(String) : EndsWithConstraint
Returns a constraint that succeeds if the actual value ends with the substring supplied as an argument.
static
StringMatching(String) : RegexConstraint
Returns a constraint that succeeds if the actual value matches the regular expression supplied as an argument.
static
StringStarting(String) : StartsWithConstraint
Returns a constraint that succeeds if the actual value starts with the substring supplied as an argument.
static
SubPath(String) : SubPathConstraint
static
SubsetOf(IEnumerable) : CollectionSubsetConstraint
Returns a constraint that tests whether the actual value is a subset of the collection supplied as an argument.
static
TypeOf(Type) : ExactTypeConstraint
Returns a constraint that tests whether the actual value is of the exact type supplied as an argument.
static
TypeOf<T>() : ExactTypeConstraint
Returns a constraint that tests whether the actual value is of the exact type supplied as an argument.