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

Inherits MonoBehaviour, and UnityTest.ITestComponent.

Public Types

enum  IncludedPlatforms {
  IncludedPlatforms.WindowsEditor = 1 << 0, IncludedPlatforms.OSXEditor = 1 << 1, IncludedPlatforms.WindowsPlayer = 1 << 2, IncludedPlatforms.OSXPlayer = 1 << 3,
  IncludedPlatforms.LinuxPlayer = 1 << 4, IncludedPlatforms.MetroPlayerX86 = 1 << 5, IncludedPlatforms.MetroPlayerX64 = 1 << 6, IncludedPlatforms.MetroPlayerARM = 1 << 7,
  IncludedPlatforms.WindowsWebPlayer = 1 << 8, IncludedPlatforms.OSXWebPlayer = 1 << 9, IncludedPlatforms.Android = 1 << 10, IncludedPlatforms.IPhonePlayer = 1 << 11,
  IncludedPlatforms.TizenPlayer = 1 << 12, IncludedPlatforms.WP8Player = 1 << 13, IncludedPlatforms.BB10Player = 1 << 14, IncludedPlatforms.NaCl = 1 << 15,
  IncludedPlatforms.PS3 = 1 << 16, IncludedPlatforms.XBOX360 = 1 << 17, IncludedPlatforms.WiiPlayer = 1 << 18, IncludedPlatforms.PSP2 = 1 << 19,
  IncludedPlatforms.PS4 = 1 << 20, IncludedPlatforms.PSMPlayer = 1 << 21, IncludedPlatforms.XboxOne = 1 << 22
}
 

Public Member Functions

bool IsExludedOnThisPlatform ()
 
bool IsExceptionExpected (string exception)
 
bool ShouldSucceedOnException ()
 
double GetTimeout ()
 
bool IsIgnored ()
 
bool ShouldSucceedOnAssertions ()
 
void OnValidate ()
 
void EnableTest (bool enable)
 
int CompareTo (ITestComponent obj)
 
bool IsTestGroup ()
 
ITestComponent GetTestGroup ()
 
override bool Equals (object o)
 
override int GetHashCode ()
 

Static Public Member Functions

static bool operator== (TestComponent a, TestComponent b)
 
static bool operator!= (TestComponent a, TestComponent b)
 
static TestComponent CreateDynamicTest (Type type)
 
static GameObject CreateTest ()
 
static List< TestComponentFindAllTestsOnScene ()
 
static List< TestComponentFindAllTopTestsOnScene ()
 
static List< TestComponentFindAllDynamicTestsOnScene ()
 
static void DestroyAllDynamicTests ()
 
static void DisableAllTests ()
 
static bool AnyTestsOnScene ()
 
static bool AnyDynamicTestForCurrentScene ()
 
static IEnumerable< Type > GetTypesWithHelpAttribute (string sceneName)
 

Public Attributes

float timeout = 5
 
bool ignored = false
 
bool succeedAfterAllAssertionsAreExecuted = false
 
bool expectException = false
 
string expectedExceptionList = ""
 
bool succeedWhenExceptionIsThrown = false
 
IncludedPlatforms includedPlatforms = (IncludedPlatforms) ~0L
 
string [] platformsToIgnore = null
 
bool dynamic
 
string dynamicTypeName
 

Static Public Attributes

static ITestComponent NullTestComponent = new NullTestComponentImpl()
 

Properties

string Name [get]
 
- Properties inherited from UnityTest.ITestComponent
GameObject gameObject [get]
 
string Name [get]
 

Member Enumeration Documentation

§ IncludedPlatforms

Enumerator
WindowsEditor 
OSXEditor 
WindowsPlayer 
OSXPlayer 
LinuxPlayer 
MetroPlayerX86 
MetroPlayerX64 
MetroPlayerARM 
WindowsWebPlayer 
OSXWebPlayer 
Android 
IPhonePlayer 
TizenPlayer 
WP8Player 
BB10Player 
NaCl 
PS3 
XBOX360 
WiiPlayer 
PSP2 
PS4 
PSMPlayer 
XboxOne 

Member Function Documentation

§ AnyDynamicTestForCurrentScene()

static bool UnityTest.TestComponent.AnyDynamicTestForCurrentScene ( )
static

§ AnyTestsOnScene()

static bool UnityTest.TestComponent.AnyTestsOnScene ( )
static

§ CompareTo()

int UnityTest.TestComponent.CompareTo ( ITestComponent  obj)

§ CreateDynamicTest()

static TestComponent UnityTest.TestComponent.CreateDynamicTest ( Type  type)
static

§ CreateTest()

static GameObject UnityTest.TestComponent.CreateTest ( )
static

§ DestroyAllDynamicTests()

static void UnityTest.TestComponent.DestroyAllDynamicTests ( )
static

§ DisableAllTests()

static void UnityTest.TestComponent.DisableAllTests ( )
static

§ EnableTest()

void UnityTest.TestComponent.EnableTest ( bool  enable)

§ Equals()

override bool UnityTest.TestComponent.Equals ( object  o)

§ FindAllDynamicTestsOnScene()

static List<TestComponent> UnityTest.TestComponent.FindAllDynamicTestsOnScene ( )
static

§ FindAllTestsOnScene()

static List<TestComponent> UnityTest.TestComponent.FindAllTestsOnScene ( )
static

§ FindAllTopTestsOnScene()

static List<TestComponent> UnityTest.TestComponent.FindAllTopTestsOnScene ( )
static

§ GetHashCode()

override int UnityTest.TestComponent.GetHashCode ( )

§ GetTestGroup()

ITestComponent UnityTest.TestComponent.GetTestGroup ( )

§ GetTimeout()

double UnityTest.TestComponent.GetTimeout ( )

§ GetTypesWithHelpAttribute()

static IEnumerable<Type> UnityTest.TestComponent.GetTypesWithHelpAttribute ( string  sceneName)
static

§ IsExceptionExpected()

bool UnityTest.TestComponent.IsExceptionExpected ( string  exception)

§ IsExludedOnThisPlatform()

bool UnityTest.TestComponent.IsExludedOnThisPlatform ( )

§ IsIgnored()

bool UnityTest.TestComponent.IsIgnored ( )

§ IsTestGroup()

bool UnityTest.TestComponent.IsTestGroup ( )

§ OnValidate()

void UnityTest.TestComponent.OnValidate ( )

§ operator!=()

static bool UnityTest.TestComponent.operator!= ( TestComponent  a,
TestComponent  b 
)
static

§ operator==()

static bool UnityTest.TestComponent.operator== ( TestComponent  a,
TestComponent  b 
)
static

§ ShouldSucceedOnAssertions()

bool UnityTest.TestComponent.ShouldSucceedOnAssertions ( )

§ ShouldSucceedOnException()

bool UnityTest.TestComponent.ShouldSucceedOnException ( )

Member Data Documentation

§ dynamic

bool UnityTest.TestComponent.dynamic

§ dynamicTypeName

string UnityTest.TestComponent.dynamicTypeName

§ expectedExceptionList

string UnityTest.TestComponent.expectedExceptionList = ""

§ expectException

bool UnityTest.TestComponent.expectException = false

§ ignored

bool UnityTest.TestComponent.ignored = false

§ includedPlatforms

IncludedPlatforms UnityTest.TestComponent.includedPlatforms = (IncludedPlatforms) ~0L

§ NullTestComponent

ITestComponent UnityTest.TestComponent.NullTestComponent = new NullTestComponentImpl()
static

§ platformsToIgnore

string [] UnityTest.TestComponent.platformsToIgnore = null

§ succeedAfterAllAssertionsAreExecuted

bool UnityTest.TestComponent.succeedAfterAllAssertionsAreExecuted = false

§ succeedWhenExceptionIsThrown

bool UnityTest.TestComponent.succeedWhenExceptionIsThrown = false

§ timeout

float UnityTest.TestComponent.timeout = 5

Property Documentation

§ Name

string UnityTest.TestComponent.Name
get

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