public void Increment_minute_over_60_increases_hour_and_adjusts_minute() { // Arrange var timeOfDay = new TimeOfDay(5, 30); // Act timeOfDay.IncrementByMinute(31); // Assert Assert.AreEqual(1, timeOfDay.Minute, "The minute value was not set."); Assert.AreEqual(6, timeOfDay.Hour, "The hour was not incremeneted when the minute reached 60."); }
public void Increment_by_minute_adds_minutes_to_property() { // Arrange var timeOfDay = new TimeOfDay(); // Act timeOfDay.IncrementByMinute(30); // Assert Assert.AreEqual(30, timeOfDay.Minute, "The minute value was not set."); }
public void Increment_minute_over_a_hour_by_one_minute() { // Arrange var timeOfDay = new TimeOfDay(5, 59); // Act timeOfDay.IncrementByMinute(5); // Assert Assert.AreEqual(0, timeOfDay.Minute, "The minute value was not set."); Assert.AreEqual(6, timeOfDay.Hour, "The hour was not incremeneted when the minute reached 60."); }