Example #1
0
        public void quals_IsEquivalent_GetHachCode02()
        {
            var got = new HourList("1-14");

            Aver.AreEqual(1, got.Spans.Count());
            var got2 = new HourList("1-14");

            Aver.IsTrue(got.Equals(got2));
            Aver.AreEqual(got.GetHashCode(), got2.GetHashCode());
            Aver.IsTrue(got.IsEquivalent(got2));
        }
Example #2
0
        public void quals_IsEquivalent_GetHachCode03()
        {
            var got = new HourList("1-14, 2:30pm-7:15pm, 23-24");

            Aver.AreEqual(3, got.Spans.Count());
            var got2 = new HourList("1:00am-2:00pm; 14.5-19.25; 11pm-24");

            Aver.AreEqual(3, got.Spans.Count());
            Aver.IsFalse(got.Equals(got2));
            Aver.AreNotEqual(got.GetHashCode(), got2.GetHashCode());
            Aver.IsTrue(got.IsEquivalent(got2));
            "{0}   {1}".SeeArgs(got, got2);
        }