public void SetMinuteSafe_upper_bounding_applied()
 {
     var dateTime = new DateTime(2014, 7, 7, 22, 32, 46);
     var actual = dateTime.SetMinuteSafe(60);
     Assert.AreEqual(59, actual.Minute);
 }
 public void SetMinuteSafe_preserves_year()
 {
     var dateTime = new DateTime(2014, 7, 7, 22, 32, 46);
     var actual = dateTime.SetMinuteSafe(5);
     Assert.AreEqual(dateTime.Year, actual.Year);
 }
 public void SetMinuteSafe_preserves_second()
 {
     var dateTime = new DateTime(2014, 7, 7, 22, 32, 46);
     var actual = dateTime.SetMinuteSafe(5);
     Assert.AreEqual(dateTime.Second, actual.Second);
 }
 public void SetMinuteSafe_preserves_month()
 {
     var dateTime = new DateTime(2014, 7, 7, 22, 32, 46);
     var actual = dateTime.SetMinuteSafe(5);
     Assert.AreEqual(dateTime.Month, actual.Month);
 }
 public void SetMinuteSafe_preserves_day()
 {
     var dateTime = new DateTime(2014, 7, 7, 22, 32, 46);
     var actual = dateTime.SetMinuteSafe(5);
     Assert.AreEqual(dateTime.Day, actual.Day);
 }
 public void SetMinuteSafe()
 {
     var dateTime = new DateTime(2014, 7, 7, 22, 32, 46);
     const int newMinute = 5;
     var actual = dateTime.SetMinuteSafe(newMinute);
     Assert.AreEqual(newMinute, actual.Minute);
 }