C# Class UnityTest, UnityTest

Inheritance: MonoBehaviour
ファイルを表示 Open project: MrJoy/UnityTest Class Usage Examples

Public Properties

Property Type Description
EditorSignals Queue,
Instance UnityTest,
TestRunner UnityEngine.Object
breakOnFailure bool
captureFramerate int
results ArrayList,

Protected Properties

Property Type Description
scrollPosition Vector2
totalTests int

Public Methods

Method Description
OnGUI ( ) : void
Start ( ) : IEnumerator
TestAll ( ) : IEnumerator

Protected Methods

Method Description
AssertEqual ( bool expectedValue, bool actualValue ) : void
AssertEqual ( bool expectedValue, bool actualValue, string msg ) : void
AssertEqual ( byte expectedValue, byte actualValue ) : void
AssertEqual ( byte expectedValue, byte actualValue, string msg ) : void
AssertEqual ( double expectedValue, double actualValue ) : void
AssertEqual ( double expectedValue, double actualValue, string msg ) : void
AssertEqual ( float expectedValue, float actualValue ) : void
AssertEqual ( float expectedValue, float actualValue, string msg ) : void
AssertEqual ( int expectedValue, int actualValue ) : void
AssertEqual ( int expectedValue, int actualValue, string msg ) : void
AssertEqual ( long expectedValue, long actualValue ) : void
AssertEqual ( long expectedValue, long actualValue, string msg ) : void
AssertEqual ( short expectedValue, short actualValue ) : void
AssertEqual ( short expectedValue, short actualValue, string msg ) : void
AssertEqual ( string expectedValue, string actualValue ) : void
AssertEqual ( string expectedValue, string actualValue, string msg ) : void
AssertFalse ( bool condition ) : void
AssertFalse ( bool condition, string msg ) : void
AssertNotNull ( object obj ) : void
AssertNotNull ( object obj, string msg ) : void
AssertNull ( object obj ) : void
AssertNull ( object obj, string msg ) : void
AssertTrue ( bool condition ) : void
AssertTrue ( bool condition, string msg ) : void
Fail ( ) : void
Fail ( string msg ) : void
Setup ( ) : void
TearDown ( ) : void

Private Methods

Method Description
AccumulateStats ( ) : void
CheckExceptions ( MethodInfo, m ) : void
DoSetup ( ) : void
DoTearDown ( ) : void
ResetTestState ( Type t, MethodInfo, m ) : void
TestCoroutine ( MethodInfo, m ) : IEnumerator
TestVanillaMethod ( MethodInfo, m ) : IEnumerator
_Fail ( string msg ) : void
_Fail ( string msg, System ex ) : void
_Pass ( ) : void

Method Details

AssertEqual() protected method

protected AssertEqual ( bool expectedValue, bool actualValue ) : void
expectedValue bool
actualValue bool
return void

AssertEqual() protected method

protected AssertEqual ( bool expectedValue, bool actualValue, string msg ) : void
expectedValue bool
actualValue bool
msg string
return void

AssertEqual() protected method

protected AssertEqual ( byte expectedValue, byte actualValue ) : void
expectedValue byte
actualValue byte
return void

AssertEqual() protected method

protected AssertEqual ( byte expectedValue, byte actualValue, string msg ) : void
expectedValue byte
actualValue byte
msg string
return void

AssertEqual() protected method

protected AssertEqual ( double expectedValue, double actualValue ) : void
expectedValue double
actualValue double
return void

AssertEqual() protected method

protected AssertEqual ( double expectedValue, double actualValue, string msg ) : void
expectedValue double
actualValue double
msg string
return void

AssertEqual() protected method

protected AssertEqual ( float expectedValue, float actualValue ) : void
expectedValue float
actualValue float
return void

AssertEqual() protected method

protected AssertEqual ( float expectedValue, float actualValue, string msg ) : void
expectedValue float
actualValue float
msg string
return void

AssertEqual() protected method

protected AssertEqual ( int expectedValue, int actualValue ) : void
expectedValue int
actualValue int
return void

AssertEqual() protected method

protected AssertEqual ( int expectedValue, int actualValue, string msg ) : void
expectedValue int
actualValue int
msg string
return void

AssertEqual() protected method

protected AssertEqual ( long expectedValue, long actualValue ) : void
expectedValue long
actualValue long
return void

AssertEqual() protected method

protected AssertEqual ( long expectedValue, long actualValue, string msg ) : void
expectedValue long
actualValue long
msg string
return void

AssertEqual() protected method

protected AssertEqual ( short expectedValue, short actualValue ) : void
expectedValue short
actualValue short
return void

AssertEqual() protected method

protected AssertEqual ( short expectedValue, short actualValue, string msg ) : void
expectedValue short
actualValue short
msg string
return void

AssertEqual() protected method

protected AssertEqual ( string expectedValue, string actualValue ) : void
expectedValue string
actualValue string
return void

AssertEqual() protected method

protected AssertEqual ( string expectedValue, string actualValue, string msg ) : void
expectedValue string
actualValue string
msg string
return void

AssertFalse() protected method

protected AssertFalse ( bool condition ) : void
condition bool
return void

AssertFalse() protected method

protected AssertFalse ( bool condition, string msg ) : void
condition bool
msg string
return void

AssertNotNull() protected method

protected AssertNotNull ( object obj ) : void
obj object
return void

AssertNotNull() protected method

protected AssertNotNull ( object obj, string msg ) : void
obj object
msg string
return void

AssertNull() protected method

protected AssertNull ( object obj ) : void
obj object
return void

AssertNull() protected method

protected AssertNull ( object obj, string msg ) : void
obj object
msg string
return void

AssertTrue() protected method

protected AssertTrue ( bool condition ) : void
condition bool
return void

AssertTrue() protected method

protected AssertTrue ( bool condition, string msg ) : void
condition bool
msg string
return void

Fail() protected method

protected Fail ( ) : void
return void

Fail() protected method

protected Fail ( string msg ) : void
msg string
return void

OnGUI() public method

public OnGUI ( ) : void
return void

Setup() protected method

protected Setup ( ) : void
return void

Start() public method

public Start ( ) : IEnumerator
return IEnumerator

TearDown() protected method

protected TearDown ( ) : void
return void

TestAll() public method

public TestAll ( ) : IEnumerator
return IEnumerator

Property Details

EditorSignals public_oe static_oe property

public static Queue, EditorSignals
return Queue,

Instance public_oe static_oe property

public static UnityTest, Instance
return UnityTest,

TestRunner public_oe static_oe property

public static Object,UnityEngine TestRunner
return UnityEngine.Object

breakOnFailure public_oe property

public bool breakOnFailure
return bool

captureFramerate public_oe property

public int captureFramerate
return int

results public_oe property

public ArrayList, results
return ArrayList,

scrollPosition protected_oe property

protected Vector2 scrollPosition
return Vector2

totalTests protected_oe property

protected int totalTests
return int