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

AssignableFromConstraint is used to test that an object can be assigned from a given Type.
Inheritance: TypeConstraint
Afficher le fichier Open project: Unity-Technologies/nunitv2

Méthodes publiques

Méthode Description
AssignableFromConstraint ( Type type ) : System

Construct an AssignableFromConstraint for the type provided

Matches ( object actual ) : bool

Test whether an object can be assigned from the specified type

WriteDescriptionTo ( MessageWriter writer ) : void

Write a description of this constraint to a MessageWriter

Method Details

AssignableFromConstraint() public méthode

Construct an AssignableFromConstraint for the type provided
public AssignableFromConstraint ( Type type ) : System
type System.Type
Résultat System

Matches() public méthode

Test whether an object can be assigned from the specified type
public Matches ( object actual ) : bool
actual object The object to be tested
Résultat bool

WriteDescriptionTo() public méthode

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