Example #1
0
        public void TestNullEquality()
        {
            StrictComparableList <string> l1 = null;
            StrictComparableList <string> l2 = null;

            var l3 = new StrictComparableList <string>()
            {
                "a",
                "c",
                "b"
            };

            Assert.AreEqual(l1, l2);
            Assert.AreNotEqual(l1, l3);
        }
Example #2
0
        public void TestUnsortedInequality()
        {
            var l1 = new StrictComparableList <string>()
            {
                "a",
                "b",
                "c"
            };

            var l2 = new StrictComparableList <string>()
            {
                "a",
                "c",
                "b"
            };

            Assert.AreNotEqual(l1, l2);
        }
Example #3
0
        public void TestBasicEquality()
        {
            var l1 = new StrictComparableList <string>()
            {
                "a",
                "b",
                "c"
            };

            var l2 = new StrictComparableList <string>()
            {
                "a",
                "b",
                "c"
            };

            Assert.AreEqual(l1, l2);
        }