C# Class tsg_Gunpowder, gunpowder

Inheritance: MonoBehaviour
Show file Open project: calebhc/gunpowder

Public Properties

Property Type Description
Input tsg_Wrapper,
currentSimulation tsg_Simulation,
currentSpecContext string
failedExpectation bool
failedExpectations Stack
simulationsToRun Queue

Protected Properties

Property Type Description
LoadSpecs Func
failCount int
pendingCount int

Public Methods

Method Description
afterEach ( Func func ) : void
beforeEach ( Func func ) : void
context ( string name, Func func ) : void
describe ( string name, Func func ) : void
expect ( object actual ) : tsg_Matcher,
find ( string objectName ) : tsg_Selector,
it ( string name ) : void
it ( string name, Func func ) : void
loadScene ( string name ) : void
match ( object actual ) : tsg_Matcher,
move ( string direction, float milliseconds, Func callback ) : void
pressButton ( string button, float milliseconds, Func callback ) : void
pressKey ( string key, float milliseconds, Func callback ) : void
waits ( float milliseconds, Func callback ) : void
xit ( string name, Func func ) : void

Protected Methods

Method Description
Awake ( ) : void
specResults ( ) : string

Private Methods

Method Description
Start ( ) : void
StartSpecs ( ) : IEnumerator
beginSpecs ( ) : void
buildContextString ( string name ) : string
resetScene ( ) : void
runNextSpec ( ) : IEnumerator
runSimulations ( ) : IEnumerator
runTestPreparatorsAround ( Func func ) : void
updateSpecResults ( ) : void

Method Details

Awake() protected method

protected Awake ( ) : void
return void

afterEach() public method

public afterEach ( Func func ) : void
func Func
return void

beforeEach() public method

public beforeEach ( Func func ) : void
func Func
return void

context() public method

public context ( string name, Func func ) : void
name string
func Func
return void

describe() public method

public describe ( string name, Func func ) : void
name string
func Func
return void

expect() public method

public expect ( object actual ) : tsg_Matcher,
actual object
return tsg_Matcher,

find() public method

public find ( string objectName ) : tsg_Selector,
objectName string
return tsg_Selector,

it() public method

public it ( string name ) : void
name string
return void

it() public method

public it ( string name, Func func ) : void
name string
func Func
return void

loadScene() public method

public loadScene ( string name ) : void
name string
return void

match() public method

public match ( object actual ) : tsg_Matcher,
actual object
return tsg_Matcher,

move() public method

public move ( string direction, float milliseconds, Func callback ) : void
direction string
milliseconds float
callback Func
return void

pressButton() public method

public pressButton ( string button, float milliseconds, Func callback ) : void
button string
milliseconds float
callback Func
return void

pressKey() public method

public pressKey ( string key, float milliseconds, Func callback ) : void
key string
milliseconds float
callback Func
return void

specResults() protected method

protected specResults ( ) : string
return string

waits() public method

public waits ( float milliseconds, Func callback ) : void
milliseconds float
callback Func
return void

xit() public method

public xit ( string name, Func func ) : void
name string
func Func
return void

Property Details

Input public static property

public static tsg_Wrapper, Input
return tsg_Wrapper,

LoadSpecs protected static property

protected static Func LoadSpecs
return Func

currentSimulation public static property

public static tsg_Simulation, currentSimulation
return tsg_Simulation,

currentSpecContext public static property

public static string currentSpecContext
return string

failCount protected static property

protected static int failCount
return int

failedExpectation public static property

public static bool failedExpectation
return bool

failedExpectations public static property

public static Stack failedExpectations
return Stack

pendingCount protected static property

protected static int pendingCount
return int

simulationsToRun public static property

public static Queue simulationsToRun
return Queue