public void EqualsNotEq2Test() { var eq = new DaysOfWeek { DayOfWeek.Monday, DayOfWeek.Tuesday, DayOfWeek.Thursday, DayOfWeek.Saturday }; Assert.AreNotEqual(_daysOfWeek, eq); Assert.IsFalse(_daysOfWeek.Equals(eq)); Assert.IsFalse(eq.Equals(_daysOfWeek)); Assert.IsFalse(_daysOfWeek == eq); Assert.IsFalse(eq == _daysOfWeek); }
public void EqualsEqTest() { var eq = new DaysOfWeek { DayOfWeek.Monday, DayOfWeek.Tuesday, DayOfWeek.Thursday, DayOfWeek.Wednesday }; Assert.AreEqual(_daysOfWeek, eq); Assert.IsTrue(_daysOfWeek.Equals(eq)); Assert.IsTrue(eq.Equals(_daysOfWeek)); Assert.IsTrue(_daysOfWeek == eq); Assert.IsTrue(eq == _daysOfWeek); }