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 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\""); }