<PackageReference Include="NUnit" Version="3.13.1" />

Is

public abstract class Is
Helper class with properties and methods that supply a number of constraints used in Asserts.
public static ConstraintExpression All { get; }

Returns a ConstraintExpression, which will apply the following constraint to all members of a collection, succeeding if all of them succeed.

Returns a constraint that tests whether an object graph is serializable in binary format.

public static EmptyConstraint Empty { get; }

Returns a constraint that tests for empty

public static FalseConstraint False { get; }

Returns a constraint that tests for False

public static NaNConstraint NaN { get; }

Returns a constraint that tests for NaN

public static LessThanConstraint Negative { get; }

Returns a constraint that tests for a negative value

public static ConstraintExpression Not { get; }

Returns a ConstraintExpression that negates any following constraint.

public static NullConstraint Null { get; }

Returns a constraint that tests for null

public static CollectionOrderedConstraint Ordered { get; }

Returns a constraint that tests whether a collection is ordered

public static GreaterThanConstraint Positive { get; }

Returns a constraint that tests for a positive value

public static TrueConstraint True { get; }

Returns a constraint that tests for True

public static UniqueItemsConstraint Unique { get; }

Returns a constraint that tests whether a collection contains all unique items.

Returns a constraint that tests whether an object graph is serializable in XML format.

public static EqualConstraint Zero { get; }

Returns a constraint that tests for equality with zero

protected Is()

public static AnyOfConstraint AnyOf(object[] expected)

Returns a constraint that tests if an item is equal to any of parameters

public static AssignableFromConstraint AssignableFrom(Type expectedType)

Returns a constraint that tests whether the actual value is assignable from the type supplied as an argument.

public static AssignableFromConstraint AssignableFrom<TExpected>()

Returns a constraint that tests whether the actual value is assignable from the type supplied as an argument.

public static AssignableToConstraint AssignableTo(Type expectedType)

Returns a constraint that tests whether the actual value is assignable to the type supplied as an argument.

public static AssignableToConstraint AssignableTo<TExpected>()

Returns a constraint that tests whether the actual value is assignable to the type supplied as an argument.

public static GreaterThanOrEqualConstraint AtLeast(object expected)

Returns a constraint that tests whether the actual value is greater than or equal to the supplied argument

public static LessThanOrEqualConstraint AtMost(object expected)

Returns a constraint that tests whether the actual value is less than or equal to the supplied argument

public static EqualConstraint EqualTo(object expected)

Returns a constraint that tests two items for equality

Returns a constraint that tests whether the actual value is a collection containing the same elements as the collection supplied as an argument.

public static GreaterThanConstraint GreaterThan(object expected)

Returns a constraint that tests whether the actual value is greater than the supplied argument

public static GreaterThanOrEqualConstraint GreaterThanOrEqualTo(object expected)

Returns a constraint that tests whether the actual value is greater than or equal to the supplied argument

public static RangeConstraint InRange(object from, object to)

Returns a constraint that tests whether the actual value falls inclusively within a specified range.

public static InstanceOfTypeConstraint InstanceOf(Type expectedType)

Returns a constraint that tests whether the actual value is of the type supplied as an argument or a derived type.

public static InstanceOfTypeConstraint InstanceOf<TExpected>()

Returns a constraint that tests whether the actual value is of the type supplied as an argument or a derived type.

public static LessThanConstraint LessThan(object expected)

Returns a constraint that tests whether the actual value is less than the supplied argument

public static LessThanOrEqualConstraint LessThanOrEqualTo(object expected)

Returns a constraint that tests whether the actual value is less than or equal to the supplied argument

public static SameAsConstraint SameAs(object expected)

Returns a constraint that tests that two references are the same object

public static SamePathConstraint SamePath(string expected)

Returns a constraint that tests whether the path provided is the same as an expected path after canonicalization.

public static SamePathOrUnderConstraint SamePathOrUnder(string expected)

Returns a constraint that tests whether the path provided is the same path or under an expected path after canonicalization.

public static SubPathConstraint SubPathOf(string expected)

Returns a constraint that tests whether the path provided is a subpath of the expected path after canonicalization.

Returns a constraint that tests whether the actual value is a subset of the collection supplied as an argument.

Returns a constraint that tests whether the actual value is a superset of the collection supplied as an argument.

public static ExactTypeConstraint TypeOf(Type expectedType)

Returns a constraint that tests whether the actual value is of the exact type supplied as an argument.

public static ExactTypeConstraint TypeOf<TExpected>()

Returns a constraint that tests whether the actual value is of the exact type supplied as an argument.