C# Class UnityEngine.NUnit.Framework.Constraints.TypeConstraint

TypeConstraint is the abstract base for constraints that take a Type as their expected value.
Inheritance: Constraint
Mostrar archivo Open project: Unity-Technologies/nunitv2

Protected Properties

Property Type Description
expectedType System.Type

Public Methods

Method Description
WriteActualValueTo ( MessageWriter writer ) : void

Write the actual value for a failing constraint test to a MessageWriter. TypeConstraints override this method to write the name of the type.

Protected Methods

Method Description
TypeConstraint ( Type type ) : System

Construct a TypeConstraint for a given Type

Method Details

TypeConstraint() protected method

Construct a TypeConstraint for a given Type
protected TypeConstraint ( Type type ) : System
type System.Type
return System

WriteActualValueTo() public method

Write the actual value for a failing constraint test to a MessageWriter. TypeConstraints override this method to write the name of the type.
public WriteActualValueTo ( MessageWriter writer ) : void
writer MessageWriter The writer on which the actual value is displayed
return void

Property Details

expectedType protected_oe property

The expected Type used by the constraint
protected Type,System expectedType
return System.Type