Пример #1
0
 public void InvalidLessMonthNumber()
 {
     var date = new MyDate(2001, 0, 1);
 }
Пример #2
0
 public void InvalidLessDayhNumber()
 {
     var date = new MyDate(2001, 1, 0);
 }
Пример #3
0
 public void InvalidLargerMonthNumber()
 {
     var date = new MyDate(2001, 13, 1);
 }
Пример #4
0
 public void InvalidLargerDayNumber()
 {
     var date = new MyDate(2001, 1, 33);
 }
Пример #5
0
 public void CorrectNumberOfRemainingDays()
 {
     var date = new MyDate(2001, 1, 1);
     Assert.AreEqual(30, date.RemainingDaysInMonth(), "");
 }
Пример #6
0
 public void CorrectMonthName()
 {
     var date = new MyDate(2001, 1, 1);
     Assert.AreEqual("The name of the month is January.", date.GetMonthName(), "");
 }