public void EqualsWorksWithDeepthFalseTest() { var contact = new ContactInformation(new PhoneNumber("0738-040807"), new EmailAddress("*****@*****.**")); var contact2 = new ContactInformation(new PhoneNumber("0738-040807"), new EmailAddress("*****@*****.**")); Assert.IsFalse(contact.Equals(contact2)); }
public void Equals_IsNotEqual_Fails() { ContactInformation A = new ContactInformation(); A.ID = Guid.NewGuid(); ContactInformation B = new ContactInformation(); B.ID = Guid.NewGuid(); Expect(A.Equals(B), Is.False); }
public void Equals_IsEqual_Passes() { Guid guid = Guid.NewGuid(); ContactInformation A = new ContactInformation(); A.ID = guid; ContactInformation B = new ContactInformation(); B.ID = guid; Expect(A.Equals(B), Is.True); }
public void Equals_InputIsNull_Fails() { ContactInformation A = new ContactInformation(); Expect(A.Equals(null), Is.False); }