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

ExactTypeConstraint is used to test that an object is of the exact type provided in the constructor
Inheritance: TypeConstraint
显示文件 Open project: Unity-Technologies/nunitv2

Public Methods

Method Description
ExactTypeConstraint ( Type type ) : System

Construct an ExactTypeConstraint for a given Type

Matches ( object actual ) : bool

Test that an object is of the exact type specified

WriteDescriptionTo ( MessageWriter writer ) : void

Write the description of this constraint to a MessageWriter

Method Details

ExactTypeConstraint() public method

Construct an ExactTypeConstraint for a given Type
public ExactTypeConstraint ( Type type ) : System
type System.Type The expected Type.
return System

Matches() public method

Test that an object is of the exact type specified
public Matches ( object actual ) : bool
actual object The actual value.
return bool

WriteDescriptionTo() public method

Write the description of this constraint to a MessageWriter
public WriteDescriptionTo ( MessageWriter writer ) : void
writer MessageWriter The MessageWriter to use
return void