Пример #1
0
        public void Equals_When_Different_Instance_Then_Returns_False()
        {
            var schedule1 = new HdoSchedule(TEST_HDO_PROVIDER_NAME, Enumerable.Empty <HdoScheduleIntervalDefinition>());
            var schedule2 = new HdoSchedule(TEST_HDO_PROVIDER_NAME + "diff", Enumerable.Empty <HdoScheduleIntervalDefinition>());

            bool areEqual = schedule1.Equals(schedule2);

            Assert.IsFalse(areEqual);
        }
Пример #2
0
        public void Equals_When_Same_Instances_Then_Returns_True()
        {
            var schedule1 = new HdoSchedule(TEST_HDO_PROVIDER_NAME, Enumerable.Empty <HdoScheduleIntervalDefinition>());
            var schedule2 = new HdoSchedule(TEST_HDO_PROVIDER_NAME, Enumerable.Empty <HdoScheduleIntervalDefinition>());

            bool areEqual = schedule1.Equals(schedule2);

            Assert.IsTrue(areEqual);
        }