예제 #1
0
 public void AverageSpeedTestThrowingException(AvgSpeed.Speedometer instance, UnitsNet.Duration duration, AvgSpeed.ITrack track, Type expected)
 {
     Assert.Throws(expected, () => instance.AverageSpeed(duration, track));
 }
예제 #2
0
 public void AverageSpeedTest(AvgSpeed.Speedometer instance, UnitsNet.Duration duration, AvgSpeed.ITrack track, UnitsNet.Speed expected)
 {
     UnitsNet.Speed actual = instance.AverageSpeed(duration, track);
     Assert.AreEqual(expected.KilometersPerHour, actual.KilometersPerHour, 1e-8);
 }