public void Decrement_by_minute_removes_minutes_from_property() { // Arrange var timeOfDay = new TimeOfDay(5, 30); // Act timeOfDay.DecrementByMinute(15); // Assert Assert.AreEqual(15, timeOfDay.Minute, "The minute value was not set."); }
public void Decrement_by_minute_removes_hour_if_minute_reaches_zero() { // Arrange var timeOfDay = new TimeOfDay(5, 30); // Act timeOfDay.DecrementByMinute(31); // Assert Assert.AreEqual(59, timeOfDay.Minute, "The minute value was not set."); Assert.AreEqual(4, timeOfDay.Hour, "The hour value was not set."); }