public IEnumerator LengthIconDisplaysCorrectDistanceInImperialUnitsTest()
        {
            controller.measurablePoint.state = MeasurablePoint.PointState.BRIDGE;
            UnitsToggleControllerMock.SetUnits(UnitsToggleController.Units.IMPERIAL);
            SetLineLength(1f);

            yield return(null);

            Assert.IsTrue(controller.ImageGO.activeSelf == true);
            Assert.AreEqual(controller.text.text, "3' 3\"");
        }
        public IEnumerator LengthIconDisplaysCorrectDistanceInMetricUnitsTest()
        {
            controller.measurablePoint.state = MeasurablePoint.PointState.BRIDGE;
            UnitsToggleControllerMock.SetUnits(UnitsToggleController.Units.METRIC);
            SetLineLength(0.1234f);

            yield return(null);

            Assert.IsTrue(controller.ImageGO.activeSelf == true);
            Assert.AreEqual(controller.text.text, "12 cm");
        }
        public void Setup()
        {
            var controllerGO = Object.Instantiate(new GameObject());

            controller = controllerGO.AddComponent <LengthIconController>();
            var ImageGO = Object.Instantiate(new GameObject());

            controller.ImageGO = ImageGO;
            controller.text    = ImageGO.AddComponent <Text>();

            measurablePoint           = SetupMeasurablePoint();
            unitsToggleControllerMock = SetupUnitsToggleMock();
        }