public void DifferentEntitiesComparisonMustBeTrueWithObjectNotEqualityOperator() { var builder = new EPersonBuilder(); var firstPerson = builder.GetPerson(1, Name, Age); var secondPerson = builder.GetPerson(2, Name + " Bob. ", Age + 23); Assert.True(firstPerson != secondPerson); }
public void SameEntitiesComparisonMustBeFalseWithObjectNotEqualityOperator() { var builder = new EPersonBuilder(); var firstPerson = builder.GetPerson(1, Name, Age); var secondPerson = builder.GetPerson(2, Name, Age); Assert.False(firstPerson != secondPerson); }
public void DifferentEntitiesMustNotEqualWithObjectEqualityOperator() { var builder = new EPersonBuilder(); var firstPerson = builder.GetPerson(1, Name, Age); var secondPerson = builder.GetPerson(2, Name + " Bob. ", Age + 23); Assert.False(firstPerson == secondPerson); }
public void SameEntitiesMustBeEqualWithObjectEqualityOperator() { var builder = new EPersonBuilder(); var firstPerson = builder.GetPerson(1, Name, Age); var secondPerson = builder.GetPerson(2, Name, Age); Assert.True(firstPerson == secondPerson); }
public void DifferentEntitiesMustBeNotEqualsWithEqualsMethod() { var builder = new EPersonBuilder(); var firstPerson = builder.GetPerson(1, Name, Age); var secondPerson = builder.GetPerson(2, Name + " Bob. ", Age + 23); Assert.False(firstPerson.Equals(secondPerson)); }
public void SameEntitiesMustBeEqualsWithEqualsMethod() { var builder = new EPersonBuilder(); var firstPerson = builder.GetPerson(1, Name, Age); var secondPerson = builder.GetPerson(2, Name, Age); Assert.True(firstPerson.Equals(secondPerson)); }