Example #1
0
        public void PatternsWithEqualFieldsAreEqual()
        {
            var target = new DailyPattern { RepeatEveryNDay = 3, RepeatEveryWeekDay = true };

            var other = new DailyPattern { RepeatEveryNDay = 3, RepeatEveryWeekDay = true };

            Assert.IsTrue(target.Equals(other));
        }
Example #2
0
        public void EqualsAsISheduleTest()
        {
            var instance = new DailyPattern();

            var res = instance.Equals(Mock.Create<ISchedulePattern>());

            Assert.IsFalse(res);
        }
Example #3
0
 public void PatternsWithDifferentRepeatEveryWeekDayAreNotEqual()
 {
     var target = new DailyPattern { RepeatEveryWeekDay = false };
     var other = new DailyPattern { RepeatEveryWeekDay = true };
     Assert.IsFalse(target.Equals(other));
 }
Example #4
0
 public void PatternsWithDefaultValuesAreEqual()
 {
     var target = new DailyPattern();
     var other = new DailyPattern();
     Assert.IsTrue(target.Equals(other));
 }
Example #5
0
 public void PatternIsNotEqualToRandomObject()
 {
     var target = new DailyPattern();
     Assert.IsFalse(target.Equals(new object()));
 }
Example #6
0
 public void PatternIsEqualToSelf()
 {
     var target = new DailyPattern();
     Assert.IsTrue(target.Equals(target));
 }
Example #7
0
 public void PatternIsNotEqualToNull()
 {
     var target = new DailyPattern();
     Assert.IsFalse(target.Equals(null));
 }