public void PatternsWithEqualFieldsAreEqual() { var target = new DailyPattern { RepeatEveryNDay = 3, RepeatEveryWeekDay = true }; var other = new DailyPattern { RepeatEveryNDay = 3, RepeatEveryWeekDay = true }; Assert.IsTrue(target.Equals(other)); }
public void EqualsAsISheduleTest() { var instance = new DailyPattern(); var res = instance.Equals(Mock.Create<ISchedulePattern>()); Assert.IsFalse(res); }
public void PatternsWithDifferentRepeatEveryWeekDayAreNotEqual() { var target = new DailyPattern { RepeatEveryWeekDay = false }; var other = new DailyPattern { RepeatEveryWeekDay = true }; Assert.IsFalse(target.Equals(other)); }
public void PatternsWithDefaultValuesAreEqual() { var target = new DailyPattern(); var other = new DailyPattern(); Assert.IsTrue(target.Equals(other)); }
public void PatternIsNotEqualToRandomObject() { var target = new DailyPattern(); Assert.IsFalse(target.Equals(new object())); }
public void PatternIsEqualToSelf() { var target = new DailyPattern(); Assert.IsTrue(target.Equals(target)); }
public void PatternIsNotEqualToNull() { var target = new DailyPattern(); Assert.IsFalse(target.Equals(null)); }