C# Класс UnityEngine.NUnit.Framework.Constraints.InstanceOfTypeConstraint

InstanceOfTypeConstraint is used to test that an object is of the same type provided or derived from it.
Наследование: TypeConstraint
Показать файл Открыть проект

Открытые методы

Метод Описание
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

Описание методов

InstanceOfTypeConstraint() публичный Метод

Construct an InstanceOfTypeConstraint for the type provided
public InstanceOfTypeConstraint ( Type type ) : System
type System.Type The expected Type
Результат System

Matches() публичный Метод

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
Результат bool

WriteDescriptionTo() публичный Метод

Write a description of this constraint to a MessageWriter
public WriteDescriptionTo ( MessageWriter writer ) : void
writer MessageWriter The MessageWriter to use
Результат void