public void SimilarOjectsAreConsideredEqual() { Assert.True(EmailAndSms.IsSameAs(SimilarEmailAndSms)); Assert.True(Email.IsSameAs(SimilarEmail)); Assert.True(Sms.IsSameAs(SimilarSms)); Assert.True(PersonalId.IsSameAs(SimilarPersonalId)); Assert.True(CustomIdentifier.IsSameAs(SimilarCustomIdentifier)); }
public void DifferentImplementationsOrDataStructureAreConsideredUnequal() { Assert.False(EmailAndSms.IsSameAs(SimilarSms)); Assert.False(EmailAndSms.IsSameAs(SimilarEmail)); Assert.False(EmailAndSms.IsSameAs(SimilarPersonalId)); Assert.False(EmailAndSms.IsSameAs(SimilarCustomIdentifier)); Assert.False(CustomIdentifier.IsSameAs(SimilarEmailAndSms)); }