public void Then_KPH_Should_Be_12() { SUT.AddSpeedData(8.0d); SUT.AddSpeedData(DataConverters.MPHtoKPH(10.0d)); SUT.CurrentSpeedType = "KPH"; Assert.AreEqual(12, SUT.DisplaySpeed, 0.1); }
public void Then_MPH_Should_Be_7_Point_5() { SUT.AddSpeedData(8.0d); SUT.AddSpeedData(DataConverters.MPHtoKPH(10.0d)); SUT.CurrentSpeedType = "MPH"; Assert.AreEqual(7.5, SUT.DisplaySpeed, 0.1); }