Class TestUtilities
Inherited Members
Namespace: Microsoft.MixedReality.Toolkit.Tests
Assembly: cs.temp.dll.dll
Syntax
public static class TestUtilities
Fields
additiveTestScenes
Declaration
public static Scene[] additiveTestScenes
Field Value
Type | Description |
---|---|
Scene[] |
additiveTestScenes
Declaration
public static Scene[] additiveTestScenes
Field Value
Type | Description |
---|---|
Scene[] |
primaryTestScene
Declaration
public static Scene primaryTestScene
Field Value
Type | Description |
---|---|
Scene |
primaryTestScene
Declaration
public static Scene primaryTestScene
Field Value
Type | Description |
---|---|
Scene |
Methods
AssertAboutEqual(Quaternion, Quaternion, String, Single)
Declaration
public static void AssertAboutEqual(Quaternion actual, Quaternion expected, string message, float tolerance = 0.01F)
Parameters
AssertAboutEqual(Quaternion, Quaternion, String, Single)
Declaration
public static void AssertAboutEqual(Quaternion actual, Quaternion expected, string message, float tolerance = 0.01F)
Parameters
AssertAboutEqual(Vector3, Vector3, String, Single)
Declaration
public static void AssertAboutEqual(Vector3 actual, Vector3 expected, string message, float tolerance = 0.01F)
Parameters
AssertAboutEqual(Vector3, Vector3, String, Single)
Declaration
public static void AssertAboutEqual(Vector3 actual, Vector3 expected, string message, float tolerance = 0.01F)
Parameters
AssertNotAboutEqual(Quaternion, Quaternion, String, Single)
Declaration
public static void AssertNotAboutEqual(Quaternion val1, Quaternion val2, string message, float tolerance = 0.01F)
Parameters
AssertNotAboutEqual(Quaternion, Quaternion, String, Single)
Declaration
public static void AssertNotAboutEqual(Quaternion val1, Quaternion val2, string message, float tolerance = 0.01F)
Parameters
AssertNotAboutEqual(Vector3, Vector3, String, Single)
Declaration
public static void AssertNotAboutEqual(Vector3 val1, Vector3 val2, string message, float tolerance = 0.01F)
Parameters
AssertNotAboutEqual(Vector3, Vector3, String, Single)
Declaration
public static void AssertNotAboutEqual(Vector3 val1, Vector3 val2, string message, float tolerance = 0.01F)
Parameters
EditorCreateScenes(Int32)
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 |
EditorCreateScenes(Int32)
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 |
EditorTearDownScenes()
Destroys all scene assets that were created over the course of testing. Used only in editor tests.
Declaration
public static void EditorTearDownScenes()
EditorTearDownScenes()
Destroys all scene assets that were created over the course of testing. Used only in editor tests.
Declaration
public static void EditorTearDownScenes()
InitializeCamera()
Declaration
public static void InitializeCamera()
InitializeCamera()
Declaration
public static void InitializeCamera()
InitializeMixedRealityToolkit(MixedRealityToolkitConfigurationProfile)
Declaration
public static void InitializeMixedRealityToolkit(MixedRealityToolkitConfigurationProfile configuration)
Parameters
Type | Name | Description |
---|---|---|
Mixed |
configuration |
InitializeMixedRealityToolkit(MixedRealityToolkitConfigurationProfile)
Declaration
public static void InitializeMixedRealityToolkit(MixedRealityToolkitConfigurationProfile configuration)
Parameters
Type | Name | Description |
---|---|---|
Mixed |
configuration |
InitializeMixedRealityToolkit(Boolean)
Declaration
public static void InitializeMixedRealityToolkit(bool useDefaultProfile = false)
Parameters
Type | Name | Description |
---|---|---|
Boolean | useDefaultProfile |
InitializeMixedRealityToolkit(Boolean)
Declaration
public static void InitializeMixedRealityToolkit(bool useDefaultProfile = false)
Parameters
Type | Name | Description |
---|---|---|
Boolean | useDefaultProfile |
InitializeMixedRealityToolkitAndCreateScenes(Boolean, Int32)
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
InitializeMixedRealityToolkitAndCreateScenes(Boolean, Int32)
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
InitializePlayspace()
Creates a playspace and moves it into a default position.
Declaration
public static void InitializePlayspace()
InitializePlayspace()
Creates a playspace and moves it into a default position.
Declaration
public static void InitializePlayspace()
PlayspaceToOriginLookingForward()
Forces the playspace camera to face forward.
Declaration
public static void PlayspaceToOriginLookingForward()
PlayspaceToOriginLookingForward()
Forces the playspace camera to face forward.
Declaration
public static void PlayspaceToOriginLookingForward()
ShutdownMixedRealityToolkit()
Declaration
public static void ShutdownMixedRealityToolkit()
ShutdownMixedRealityToolkit()
Declaration
public static void ShutdownMixedRealityToolkit()