public void CalculateWithDistanceZeroSpeedMinPerKm() { //Arrange var activity = new ActivityDto() { Duration = new TimeSpan(0, 50, 0), Distance = 0 }; //Act var result = activity.Speed(SpeedType.MinPerKm); //Assert Assert.AreEqual("", result); }
public void CalculateCorrectSpeedKmPerHour() { //Arrange var activity = new ActivityDto { Duration = new TimeSpan(1, 30, 0), Distance = 30 }; //Act var result = activity.Speed(SpeedType.KmPerHour); //Assert Assert.AreEqual("20,00",result); }