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)); }
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")); }
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)); }