示例#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(), "");
 }