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

AttributeExistsConstraint tests for the presence of a specified attribute on a Type.
Inheritance: Constraint
显示文件 Open project: Unity-Technologies/nunitv2

Public Methods

Method Description
AttributeExistsConstraint ( Type type ) : System

Constructs an AttributeExistsConstraint for a specific attribute Type

Matches ( object actual ) : bool

Tests whether the object provides the expected attribute.

WriteDescriptionTo ( MessageWriter writer ) : void

Writes the description of the constraint to the specified writer

Method Details

AttributeExistsConstraint() public method

Constructs an AttributeExistsConstraint for a specific attribute Type
public AttributeExistsConstraint ( Type type ) : System
type System.Type
return System

Matches() public method

Tests whether the object provides the expected attribute.
public Matches ( object actual ) : bool
actual object A Type, MethodInfo, or other ICustomAttributeProvider
return bool

WriteDescriptionTo() public method

Writes the description of the constraint to the specified writer
public WriteDescriptionTo ( MessageWriter writer ) : void
writer MessageWriter
return void