public void EqualsWithEmptyValueObjectsReturnTrue() { SimpleValueObject vo1 = new SimpleValueObject(); SimpleValueObject vo2 = new SimpleValueObject(); var equality = vo1.Equals(vo2); Assert.AreEqual(true, equality); }
public void EqualsWithOneDifferentPropertyReturnFalse() { SimpleValueObject vo1 = new SimpleValueObject(); SimpleValueObject vo2 = new SimpleValueObject(); vo1.i = 1; vo1.s = "string"; vo2.i = 1; vo2.s = "s"; var equality = vo1.Equals(vo2); Assert.AreEqual(false, equality); }
public void EqualsWithEqualsValueObjectsReturnTrue() { SimpleValueObject vo1 = new SimpleValueObject(); SimpleValueObject vo2 = new SimpleValueObject(); vo1.i = 1; vo1.s = "string"; vo2.i = 1; vo2.s = "string"; var equality = vo1.Equals(vo2); Assert.AreEqual(true, equality); }