C# Class MsgPack.UnityTestDriver

Implements unit test driver for Unity IL2CPP.
Inheritance: TestDriver
Exibir arquivo Open project: msgpack/msgpack-cli

Public Methods

Method Description
Run ( UnityEngine.UI.Button buttonPrefab, GameObject buttonVertical, Result resultPrefab, GameObject resultVertical ) : void

Runs this test driver.

Private Methods

Method Description
CleanUpTestEngine ( ) : void

Clean-ups the underlying test engine.

Clear ( GameObject resultVertical ) : void

Clears the test results..

CreateResult ( string methodName, Result resultPrefab, GameObject resultVertical ) : Result

Creates new test result.

InitializeTestEngine ( ) : void

Initializes the underlying test engine.

IsTestFailure ( Exception ex ) : bool

Determines whether the exception represents test failure instead of exceptional case (that is, error).

IsTestSkipping ( Exception ex ) : bool

Determines whether the exception represents test skipping instead of exceptional case (that is, error).

RunAllTestCoroutine ( IEnumerable testClasses, Result resultPrefab, GameObject resultVertical ) : IEnumerator

Runs all test as coroutine.

RunTestCoroutine ( TestClass testClass, Result resultPrefab, GameObject resultVertical ) : IEnumerator

Runs specified test class as coroutine.

RuntTestCoroutineCore ( TestClass testClass, TestSummaryReporter summaryReporter, Result resultPrefab, GameObject resultVertical ) : IEnumerator

Runs specified test class as coroutine.

Method Details

Run() public method

Runs this test driver.
public Run ( UnityEngine.UI.Button buttonPrefab, GameObject buttonVertical, Result resultPrefab, GameObject resultVertical ) : void
buttonPrefab UnityEngine.UI.Button The prefab for test starting buttons.
buttonVertical UnityEngine.GameObject The vertical area which test starting buttons to be belonging.
resultPrefab Result The prefab for test result indicators.
resultVertical UnityEngine.GameObject The vertical area which test result indicators to be belonging.
return void