ConstraintFactory.AssignableTo Method

Definition

Overloads

AssignableTo(Type)

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

AssignableTo<T>()

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

AssignableTo(Type)

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

public NUnit.Framework.Constraints.AssignableToConstraint AssignableTo (Type expectedType);
member this.AssignableTo : Type -> NUnit.Framework.Constraints.AssignableToConstraint

Parameters

expectedType
Type

Returns

AssignableToConstraint

Applies to

AssignableTo<T>()

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

public NUnit.Framework.Constraints.AssignableToConstraint AssignableTo<T> ();
member this.AssignableTo : unit -> NUnit.Framework.Constraints.AssignableToConstraint

Type Parameters

T

Returns

AssignableToConstraint

Applies to