Editar

Compartilhar via


TestUtilities Class

Definition

public ref class TestUtilities abstract sealed
public static class TestUtilities
type TestUtilities = class
Public Class TestUtilities
Inheritance
TestUtilities

Fields

additiveTestScenes
primaryTestScene

Properties

ArbitraryParentPose

Pose to create MRTK playspace's parent transform at.

ArbitraryPlayspacePose

Pose to set playspace at, when using PlayspaceToArbitraryPose().

Methods

AssertAboutEqual(Quaternion, Quaternion, String, Single)
AssertAboutEqual(Vector3, Vector3, String, Single)
AssertGreaterOrEqual(Single, Single, Single)

Equivalent to NUnit.Framework.Assert.GreaterOrEqual, except this also applies a slight tolerance on the equality check.

AssertGreaterOrEqual(Single, Single, String, Single)

Equivalent to NUnit.Framework.Assert.GreaterOrEqual, except this also applies a slight tolerance on the equality check.

AssertLessOrEqual(Single, Single, Single)

Equivalent to NUnit.Framework.Assert.LessOrEqual, except this also applies a slight tolerance on the equality check.

AssertLessOrEqual(Single, Single, String, Single)

Equivalent to NUnit.Framework.Assert.LessOrEqual, except this also applies a slight tolerance on the equality check.

AssertNotAboutEqual(Quaternion, Quaternion, String, Single)
AssertNotAboutEqual(Vector3, Vector3, String, Single)
DirectionRelativeToPlayspace(Vector3)

Compute the world direction corresponding to the input local direction in playspace.

EditorCreateScenes(Int32)

Creates a number of scenes and loads them additively for testing. Must create a minimum of 1. Used only in editor tests.

EditorTearDownScenes()

Destroys all scene assets that were created over the course of testing. Used only in editor tests.

GetDefaultMixedRealityProfile<T>()
InitializeCamera()
InitializeMixedRealityToolkit(Boolean)
InitializeMixedRealityToolkit(MixedRealityToolkitConfigurationProfile)
InitializeMixedRealityToolkitAndCreateScenes(Boolean, Int32)

Creates the requested number of scenes, then creates one instance of the MixedRealityToolkit in the active scene.

InitializePlayspace()

Creates a playspace and moves it into a default position.

PlaceRelativeToPlayspace(Transform, Vector3, Quaternion)

Place the transform in world space as if it had the input local pose and was attached to the playspace.

PlaceRelativeToPlayspace(Transform)

Place the transform in world space as if its current world pose were its local pose and it was attached to the playspace.

PlaceRelativeToPlayspace(Vector3, Quaternion)

Return a pose equivalent to the input local pose appended to the current playspace pose.

PlayspaceToArbitraryPose()

Set the playspace to an arbitrary (but known) non-identity pose.

PlayspaceToOriginLookingForward()

Forces the playspace camera to origin facing forward along +Z.

PlayspaceToPositionAndRotation(Vector3, Quaternion)

Force the playspace camera into the specified position and orientation.

PositionRelativeToPlayspace(Vector3)

Compute the world position corresponding to the input local position in playspace.

RotationRelativeToPlayspace(Quaternion)

Compute the world rotation corresponding to the input local rotation in playspace.

ShutdownMixedRealityToolkit()

Applies to