MeshBaker
Public Member Functions | Static Public Member Functions | Public Attributes | Properties | List of all members
UnityTest.AssertionComponent Class Reference

Inherits MonoBehaviour, and UnityTest.IAssertionComponentConfigurator.

Public Member Functions

Object GetFailureReferenceObject ()
 
string GetCreationLocation ()
 
void Awake ()
 
void OnValidate ()
 
void Start ()
 
IEnumerator CheckPeriodically ()
 
bool ShouldCheckOnFrame ()
 
void OnDisable ()
 
void OnEnable ()
 
void OnDestroy ()
 
void Update ()
 
void FixedUpdate ()
 
void LateUpdate ()
 
void OnControllerColliderHit ()
 
void OnParticleCollision ()
 
void OnJointBreak ()
 
void OnBecameInvisible ()
 
void OnBecameVisible ()
 
void OnTriggerEnter ()
 
void OnTriggerExit ()
 
void OnTriggerStay ()
 
void OnCollisionEnter ()
 
void OnCollisionExit ()
 
void OnCollisionStay ()
 
void OnTriggerEnter2D ()
 
void OnTriggerExit2D ()
 
void OnTriggerStay2D ()
 
void OnCollisionEnter2D ()
 
void OnCollisionExit2D ()
 
void OnCollisionStay2D ()
 
bool IsCheckMethodSelected (CheckMethod method)
 

Static Public Member Functions

static T Create< T > (CheckMethod checkOnMethods, GameObject gameObject, string propertyPath)
 
static T Create< T > (out IAssertionComponentConfigurator configurator, CheckMethod checkOnMethods, GameObject gameObject, string propertyPath)
 
static T Create< T > (CheckMethod checkOnMethods, GameObject gameObject, string propertyPath, GameObject gameObject2, string propertyPath2)
 
static T Create< T > (out IAssertionComponentConfigurator configurator, CheckMethod checkOnMethods, GameObject gameObject, string propertyPath, GameObject gameObject2, string propertyPath2)
 
static T Create< T > (CheckMethod checkOnMethods, GameObject gameObject, string propertyPath, object constValue)
 
static T Create< T > (out IAssertionComponentConfigurator configurator, CheckMethod checkOnMethods, GameObject gameObject, string propertyPath, object constValue)
 

Public Attributes

float checkAfterTime = 1f
 
bool repeatCheckTime = true
 
float repeatEveryTime = 1f
 
int checkAfterFrames = 1
 
bool repeatCheckFrame = true
 
int repeatEveryFrame = 1
 
bool hasFailed
 
CheckMethod checkMethods = CheckMethod.Start
 
int checksPerformed = 0
 

Properties

ActionBase Action [get, set]
 
int UpdateCheckStartOnFrame [set]
 
int UpdateCheckRepeatFrequency [set]
 
bool UpdateCheckRepeat [set]
 
float TimeCheckStartAfter [set]
 
float TimeCheckRepeatFrequency [set]
 
bool TimeCheckRepeat [set]
 
AssertionComponent Component [get]
 
- Properties inherited from UnityTest.IAssertionComponentConfigurator
int UpdateCheckStartOnFrame [set]
 If the assertion is evaluated in Update, after how many frame should the evaluation start. More...
 
int UpdateCheckRepeatFrequency [set]
 If the assertion is evaluated in Update and UpdateCheckRepeat is true, how many frame should pass between evaluations More...
 
bool UpdateCheckRepeat [set]
 If the assertion is evaluated in Update, should the evaluation be repeated after UpdateCheckRepeatFrequency frames More...
 
float TimeCheckStartAfter [set]
 If the assertion is evaluated after a period of time, after how many seconds the first evaluation should be done More...
 
float TimeCheckRepeatFrequency [set]
 If the assertion is evaluated after a period of time and TimeCheckRepeat is true, after how many seconds should the next evaluation happen More...
 
bool TimeCheckRepeat [set]
 If the assertion is evaluated after a period, should the evaluation happen again after TimeCheckRepeatFrequency seconds More...
 
AssertionComponent Component [get]
 

Member Function Documentation

§ Awake()

void UnityTest.AssertionComponent.Awake ( )

§ CheckPeriodically()

IEnumerator UnityTest.AssertionComponent.CheckPeriodically ( )

§ Create< T >() [1/6]

static T UnityTest.AssertionComponent.Create< T > ( CheckMethod  checkOnMethods,
GameObject  gameObject,
string  propertyPath 
)
static
Type Constraints
T :ActionBase 

§ Create< T >() [2/6]

static T UnityTest.AssertionComponent.Create< T > ( out IAssertionComponentConfigurator  configurator,
CheckMethod  checkOnMethods,
GameObject  gameObject,
string  propertyPath 
)
static
Type Constraints
T :ActionBase 

§ Create< T >() [3/6]

static T UnityTest.AssertionComponent.Create< T > ( CheckMethod  checkOnMethods,
GameObject  gameObject,
string  propertyPath,
GameObject  gameObject2,
string  propertyPath2 
)
static
Type Constraints
T :ComparerBase 

§ Create< T >() [4/6]

static T UnityTest.AssertionComponent.Create< T > ( out IAssertionComponentConfigurator  configurator,
CheckMethod  checkOnMethods,
GameObject  gameObject,
string  propertyPath,
GameObject  gameObject2,
string  propertyPath2 
)
static
Type Constraints
T :ComparerBase 

§ Create< T >() [5/6]

static T UnityTest.AssertionComponent.Create< T > ( CheckMethod  checkOnMethods,
GameObject  gameObject,
string  propertyPath,
object  constValue 
)
static
Type Constraints
T :ComparerBase 

§ Create< T >() [6/6]

static T UnityTest.AssertionComponent.Create< T > ( out IAssertionComponentConfigurator  configurator,
CheckMethod  checkOnMethods,
GameObject  gameObject,
string  propertyPath,
object  constValue 
)
static
Type Constraints
T :ComparerBase 

§ FixedUpdate()

void UnityTest.AssertionComponent.FixedUpdate ( )

§ GetCreationLocation()

string UnityTest.AssertionComponent.GetCreationLocation ( )

§ GetFailureReferenceObject()

Object UnityTest.AssertionComponent.GetFailureReferenceObject ( )

§ IsCheckMethodSelected()

bool UnityTest.AssertionComponent.IsCheckMethodSelected ( CheckMethod  method)

§ LateUpdate()

void UnityTest.AssertionComponent.LateUpdate ( )

§ OnBecameInvisible()

void UnityTest.AssertionComponent.OnBecameInvisible ( )

§ OnBecameVisible()

void UnityTest.AssertionComponent.OnBecameVisible ( )

§ OnCollisionEnter()

void UnityTest.AssertionComponent.OnCollisionEnter ( )

§ OnCollisionEnter2D()

void UnityTest.AssertionComponent.OnCollisionEnter2D ( )

§ OnCollisionExit()

void UnityTest.AssertionComponent.OnCollisionExit ( )

§ OnCollisionExit2D()

void UnityTest.AssertionComponent.OnCollisionExit2D ( )

§ OnCollisionStay()

void UnityTest.AssertionComponent.OnCollisionStay ( )

§ OnCollisionStay2D()

void UnityTest.AssertionComponent.OnCollisionStay2D ( )

§ OnControllerColliderHit()

void UnityTest.AssertionComponent.OnControllerColliderHit ( )

§ OnDestroy()

void UnityTest.AssertionComponent.OnDestroy ( )

§ OnDisable()

void UnityTest.AssertionComponent.OnDisable ( )

§ OnEnable()

void UnityTest.AssertionComponent.OnEnable ( )

§ OnJointBreak()

void UnityTest.AssertionComponent.OnJointBreak ( )

§ OnParticleCollision()

void UnityTest.AssertionComponent.OnParticleCollision ( )

§ OnTriggerEnter()

void UnityTest.AssertionComponent.OnTriggerEnter ( )

§ OnTriggerEnter2D()

void UnityTest.AssertionComponent.OnTriggerEnter2D ( )

§ OnTriggerExit()

void UnityTest.AssertionComponent.OnTriggerExit ( )

§ OnTriggerExit2D()

void UnityTest.AssertionComponent.OnTriggerExit2D ( )

§ OnTriggerStay()

void UnityTest.AssertionComponent.OnTriggerStay ( )

§ OnTriggerStay2D()

void UnityTest.AssertionComponent.OnTriggerStay2D ( )

§ OnValidate()

void UnityTest.AssertionComponent.OnValidate ( )

§ ShouldCheckOnFrame()

bool UnityTest.AssertionComponent.ShouldCheckOnFrame ( )

§ Start()

void UnityTest.AssertionComponent.Start ( )

§ Update()

void UnityTest.AssertionComponent.Update ( )

Member Data Documentation

§ checkAfterFrames

int UnityTest.AssertionComponent.checkAfterFrames = 1

§ checkAfterTime

float UnityTest.AssertionComponent.checkAfterTime = 1f

§ checkMethods

CheckMethod UnityTest.AssertionComponent.checkMethods = CheckMethod.Start

§ checksPerformed

int UnityTest.AssertionComponent.checksPerformed = 0

§ hasFailed

bool UnityTest.AssertionComponent.hasFailed

§ repeatCheckFrame

bool UnityTest.AssertionComponent.repeatCheckFrame = true

§ repeatCheckTime

bool UnityTest.AssertionComponent.repeatCheckTime = true

§ repeatEveryFrame

int UnityTest.AssertionComponent.repeatEveryFrame = 1

§ repeatEveryTime

float UnityTest.AssertionComponent.repeatEveryTime = 1f

Property Documentation

§ Action

ActionBase UnityTest.AssertionComponent.Action
getset

§ Component

AssertionComponent UnityTest.AssertionComponent.Component
get

§ TimeCheckRepeat

bool UnityTest.AssertionComponent.TimeCheckRepeat
set

§ TimeCheckRepeatFrequency

float UnityTest.AssertionComponent.TimeCheckRepeatFrequency
set

§ TimeCheckStartAfter

float UnityTest.AssertionComponent.TimeCheckStartAfter
set

§ UpdateCheckRepeat

bool UnityTest.AssertionComponent.UpdateCheckRepeat
set

§ UpdateCheckRepeatFrequency

int UnityTest.AssertionComponent.UpdateCheckRepeatFrequency
set

§ UpdateCheckStartOnFrame

int UnityTest.AssertionComponent.UpdateCheckStartOnFrame
set

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