Able
Askowl Base Library Enabler
Askowl.PlayModeTests Class Reference

PlayModeController wrapper with asserts More...

Inheritance diagram for Askowl.PlayModeTests:
Askowl.PlayModeController

Public Member Functions

IEnumerator IsDisplayingInUi (string path, bool visible=true, int repeats=300)
 IsDisplayingInUI, assert if not visible/invisible as expected after nn frames More...
 
- Public Member Functions inherited from Askowl.PlayModeController
bool IsDisplayingInUi (RectTransform transform)
 See if component is visible on the UI display/screen More...
 

Protected Member Functions

override IEnumerator LoadScene (string sceneName)
 Load scene. Assert on failure Load a scene by name (must be in build) More...
 
IEnumerator PushButton (string path)
 Push button, assert if it can't be found More...
 

Static Protected Member Functions

static T Component< T > (string path)
 Components.Find, assert on failure More...
 
static GameObject FindGameObject (string name)
 FindObject{GameObject} shortcut More...
 
static T FindObject< T > (string name)
 Objects.Find, assert if none found More...
 
static void CheckPattern (Regex regex, string against)
 Check string against regex, assert if no match More...
 
static void Fail (string message)
  //#TBD#// More...
 

Additional Inherited Members

- Static Public Member Functions inherited from Askowl.PlayModeController
static void AddSceneToBuildSettings (string path)
  //#TBD#// More...
 
static IEnumerator PushButton (Button button)
 Push a GUI button More...
 
- Protected Attributes inherited from Askowl.PlayModeController
Scene Scene
  More...
 

Detailed Description

Member Function Documentation

◆ CheckPattern()

static void Askowl.PlayModeTests.CheckPattern ( Regex  regex,
string  against 
)
staticprotected

◆ Component< T >()

static T Askowl.PlayModeTests.Component< T > ( string  path)
staticprotected

Components.Find, assert on failure

Type Constraints
T :Component 

Definition at line 30 of file PlayModeTests.cs.

◆ Fail()

static void Askowl.PlayModeTests.Fail ( string  message)
staticprotected

//#TBD#//

◆ FindGameObject()

static GameObject Askowl.PlayModeTests.FindGameObject ( string  name)
staticprotected

◆ FindObject< T >()

static T Askowl.PlayModeTests.FindObject< T > ( string  name)
staticprotected

Objects.Find, assert if none found

Type Constraints
T :Object 

Definition at line 40 of file PlayModeTests.cs.

◆ IsDisplayingInUi()

IEnumerator Askowl.PlayModeTests.IsDisplayingInUi ( string  path,
bool  visible = true,
int  repeats = 300 
)

◆ LoadScene()

override IEnumerator Askowl.PlayModeTests.LoadScene ( string  sceneName)
protectedvirtual

◆ PushButton()

IEnumerator Askowl.PlayModeTests.PushButton ( string  path)
protected

The documentation for this class was generated from the following file: