Class TestUtilities
Inheritance
TestUtilities
Assembly: cs.temp.dll.dll
public static class TestUtilities
Fields
Declaration
public static Scene[] additiveTestScenes
Field Value
Declaration
public static Scene primaryTestScene
Field Value
Methods
Declaration
public static void AssertAboutEqual(Quaternion actual, Quaternion expected, string message, float tolerance = 0.01F)
Parameters
Type |
Name |
Description |
Quaternion |
actual |
|
Quaternion |
expected |
|
String |
message |
|
Single |
tolerance |
|
Declaration
public static void AssertAboutEqual(Vector3 actual, Vector3 expected, string message, float tolerance = 0.01F)
Parameters
Type |
Name |
Description |
Vector3 |
actual |
|
Vector3 |
expected |
|
String |
message |
|
Single |
tolerance |
|
Declaration
public static void AssertNotAboutEqual(Quaternion val1, Quaternion val2, string message, float tolerance = 0.01F)
Parameters
Type |
Name |
Description |
Quaternion |
val1 |
|
Quaternion |
val2 |
|
String |
message |
|
Single |
tolerance |
|
Declaration
public static void AssertNotAboutEqual(Vector3 val1, Vector3 val2, string message, float tolerance = 0.01F)
Parameters
Type |
Name |
Description |
Vector3 |
val1 |
|
Vector3 |
val2 |
|
String |
message |
|
Single |
tolerance |
|
Creates a number of scenes and loads them additively for testing. Must create a minimum of 1.
Used only in editor tests.
Declaration
public static void EditorCreateScenes(int numScenesToCreate = 1)
Parameters
Type |
Name |
Description |
Int32 |
numScenesToCreate |
|
Destroys all scene assets that were created over the course of testing.
Used only in editor tests.
Declaration
public static void EditorTearDownScenes()
Declaration
public static void InitializeMixedRealityToolkit(MixedRealityToolkitConfigurationProfile configuration)
Parameters
Declaration
public static void InitializeMixedRealityToolkit(bool useDefaultProfile = false)
Parameters
Type |
Name |
Description |
Boolean |
useDefaultProfile |
|
Creates the requested number of scenes, then creates one instance of the MixedRealityToolkit in the active scene.
Declaration
public static void InitializeMixedRealityToolkitAndCreateScenes(bool useDefaultProfile = false, int numScenesToCreate = 1)
Parameters
Type |
Name |
Description |
Boolean |
useDefaultProfile |
|
Int32 |
numScenesToCreate |
|
Creates a playspace and moves it into a default position.
Declaration
public static void InitializePlayspace()
Forces the playspace camera to face forward.
Declaration
public static void PlayspaceToOriginLookingForward()
Declaration
public static void ShutdownMixedRealityToolkit()