Beispiel #1
0
 public void GetHashCode_DifferentFields_DifferentHashCode()
 {
     day1 = new Day(new List<BookableRoom>() { broom1 });
     day2 = new Day(new List<BookableRoom>() { broom2 });
     Assert.AreNotEqual(day1, day2);
     Assert.AreNotEqual(day1.GetHashCode(), day2.GetHashCode());
 }
Beispiel #2
0
        public void GetHashCode_Clone_SameHashCode()
        {
            day2 = (Day)day1.Clone();

            Assert.AreEqual(day1, day2);
            Assert.AreEqual(day1.GetHashCode(), day2.GetHashCode());
        }