Пример #1
0
        public void SETContentDifferentEqualityTest()
        {
            SET <ST> a = new SET <ST>(new ST[] { "A", "B", "C" }),
                     b = new SET <ST>(new ST[] { "A", "B", "D", "E" });

            Assert.IsFalse(a.Equals(b));
        }
Пример #2
0
        public void SETContentSameEqualityTest()
        {
            SET <ST> a = new SET <ST>(new ST[] { "A", "B", "C" }),
                     b = new SET <ST>(new ST[] { "A", "B", "C" });

            Assert.IsTrue(a.Equals(b));
        }
Пример #3
0
        public void SETTypeMismatchEqualityTest()
        {
            SET <ST> a = new SET <ST>(new ST[] { "A", "B", "C" }),
                     b = new SET <ST>(new ST[] { "D", "E" });

            Assert.IsFalse(a.Equals("A B C"));
        }
Пример #4
0
 public void SETContentDifferentEqualityTest()
 {
     SET<ST> a = new SET<ST>(new ST[] { "A", "B", "C" }),
         b = new SET<ST>(new ST[] { "A", "B", "D", "E" });
     Assert.IsFalse(a.Equals(b));
 }
Пример #5
0
 public void SETContentSameEqualityTest()
 {
     SET<ST> a = new SET<ST>(new ST[] { "A", "B", "C" }),
         b = new SET<ST>(new ST[] { "A", "B", "C" });
     Assert.IsTrue(a.Equals(b));
 }
Пример #6
0
 public void SETTypeMismatchEqualityTest()
 {
     SET<ST> a = new SET<ST>(new ST[] { "A", "B", "C" }),
         b = new SET<ST>(new ST[] { "D", "E" });
     Assert.IsFalse(a.Equals("A B C"));
 }