public IEnumerator CrossHairFollowsCameraTest()
        {
            rayCastControllerMock.SetIsRaycasting(false);
            yield return(null);

            Assert.IsTrue(AreVectorsEqual(crossHairController.gameObject.transform.localPosition, crossHairController.cameraPositionOffset));
            Assert.IsTrue(AreVectorsEqual(crossHairController.gameObject.transform.localEulerAngles, crossHairController.cameraRotationOffset));
        }
Пример #2
0
        public IEnumerator PointAndLinePlacementUnitTestWithEnumeratorPasses()
        {
            Assert.AreEqual(pointAndLinePlacementController.measureblePoints.Count, 0);
            rayCastControllerMock.SetIsRaycasting(true);
            rayCastControllerMock.SetPose(new Pose());

            yield return(null);
        }