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

InstanceOfTypeConstraint is used to test that an object is of the same type provided or derived from it.
Inheritance: TypeConstraint
显示文件 Open project: Unity-Technologies/nunitv2

Public Methods

Method Description
InstanceOfTypeConstraint ( Type type ) : System

Construct an InstanceOfTypeConstraint for the type provided

Matches ( object actual ) : bool

Test whether an object is of the specified type or a derived type

WriteDescriptionTo ( MessageWriter writer ) : void

Write a description of this constraint to a MessageWriter

Method Details

InstanceOfTypeConstraint() public method

Construct an InstanceOfTypeConstraint for the type provided
public InstanceOfTypeConstraint ( Type type ) : System
type System.Type The expected Type
return System

Matches() public method

Test whether an object is of the specified type or a derived type
public Matches ( object actual ) : bool
actual object The object to be tested
return bool

WriteDescriptionTo() public method

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