Exemple #1
0
        public IEnumerator PointAndLinePlacementUnitTestWithEnumeratorPasses()
        {
            Assert.AreEqual(pointAndLinePlacementController.measureblePoints.Count, 0);
            rayCastControllerMock.SetIsRaycasting(true);
            rayCastControllerMock.SetPose(new Pose());

            yield return(null);
        }
        public IEnumerator CrossHairFollowsTrackableTest()
        {
            Pose pose = new Pose();

            pose.position             = new Vector3(1, 2, 3);
            pose.rotation.eulerAngles = new Vector3(4, 5, 6);
            rayCastControllerMock.SetIsRaycasting(true);
            rayCastControllerMock.SetPose(pose);
            yield return(null);

            Assert.IsTrue(AreVectorsEqual(crossHairController.gameObject.transform.position, pose.position));
            Assert.IsTrue(AreVectorsEqual(crossHairController.gameObject.transform.eulerAngles, pose.rotation.eulerAngles));
        }