Exemplo n.º 1
0
        public void ADContentSameEqualityTest()
        {
            AD a = new AD(
                new ADXP[] {
                new ADXP("123 Main Street West Hamilton ON")
            }
                ), b = new AD(new ADXP[] {
                new ADXP("123 Main Street West Hamilton ON")
            }
                              );

            Assert.IsTrue(a.Equals(b));
            Assert.IsTrue(a.Equals((object)b));
        }
Exemplo n.º 2
0
        public void ADTypeMismatchEqualityTest()
        {
            AD a = new AD(
                new ADXP[] {
                new ADXP("123 Main Street West Hamilton ON")
            }
                );

            Assert.IsFalse(a.Equals("123 Main Street West Hamilton ON"));
        }
Exemplo n.º 3
0
        public void ADContentDifferentEqualityTest()
        {
            AD a = new AD(
                new ADXP[] {
                new ADXP("123 Main Street West Hamilton ON")
            }
                ), b = new AD(new ADXP[] {
                new ADXP("123 Main Street West Hamilton")
            }
                              );

            Assert.IsFalse(a.Equals(b));
        }
Exemplo n.º 4
0
 public void ADContentSameEqualityTest()
 {
     AD a = new AD(
         new ADXP[] { 
             new ADXP("123 Main Street West Hamilton ON")
         }
     ), b = new AD(new ADXP[] { 
             new ADXP("123 Main Street West Hamilton ON")
         }
     );
     Assert.IsTrue(a.Equals(b));
     Assert.IsTrue(a.Equals((object)b));
 }
Exemplo n.º 5
0
 public void ADTypeMismatchEqualityTest()
 {
     AD a = new AD(
         new ADXP[] { 
             new ADXP("123 Main Street West Hamilton ON")
         }
     );
     Assert.IsFalse(a.Equals("123 Main Street West Hamilton ON"));
 }
Exemplo n.º 6
0
 public void ADContentDifferentEqualityTest()
 {
     AD a = new AD(
         new ADXP[] { 
             new ADXP("123 Main Street West Hamilton ON")
         }
     ), b = new AD(new ADXP[] { 
             new ADXP("123 Main Street West Hamilton")
         }
     );
     Assert.IsFalse(a.Equals(b));
 }