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

ExceptionTypeConstraint is a special version of ExactTypeConstraint used to provided detailed info about the exception thrown in an error message.
Inheritance: ExactTypeConstraint
ファイルを表示 Open project: Unity-Technologies/nunitv2

Public Methods

Method Description
ExceptionTypeConstraint ( Type type ) : System

Constructs an ExceptionTypeConstraint

WriteActualValueTo ( MessageWriter writer ) : void

Write the actual value for a failing constraint test to a MessageWriter. Overriden to write additional information in the case of an Exception.

Method Details

ExceptionTypeConstraint() public method

Constructs an ExceptionTypeConstraint
public ExceptionTypeConstraint ( Type type ) : System
type System.Type
return System

WriteActualValueTo() public method

Write the actual value for a failing constraint test to a MessageWriter. Overriden to write additional information in the case of an Exception.
public WriteActualValueTo ( MessageWriter writer ) : void
writer MessageWriter The MessageWriter to use
return void