예제 #1
0
 public void Equality_NotEqual()
 {
     var day = new CalendarDay(2010, 8, 1);
     var day2 = new CalendarDay(2020, 8, 1);
     Assert.IsFalse(day.Equals(day2));
 }
예제 #2
0
 public void Equality_SameObject()
 {
     var day = new CalendarDay(2010, 8, 1);
     var secondReference = day;
     Assert.IsTrue(day.Equals(secondReference));
 }
예제 #3
0
 public void Equality_DifferentObject()
 {
     var day = new CalendarDay(2010, 8, 1);
     var day2 = new CalendarDay(2010, 8, 1);
     Assert.IsTrue(day.Equals(day2));
 }