public void DifferentValueObjectsComparisonMustBeTrueWithObjectNotEqualityOperator() { var builder = new MoneyValueObjectBuilder(); var firstMoneyResource = builder.GetMoney(Amount); var secondMoneyResource = builder.GetMoney(Amount + 32000); Assert.True(firstMoneyResource != secondMoneyResource); }
public void SameValueObjectsComparisonMustBeFalseWithObjectNotEqualityOperator() { var builder = new MoneyValueObjectBuilder(); var firstMoneyResource = builder.GetMoney(Amount); var secondMoneyResource = builder.GetMoney(Amount); Assert.False(firstMoneyResource != secondMoneyResource); }
public void DifferentValueObjectsMustNotEqualWithObjectEqualityOperator() { var builder = new MoneyValueObjectBuilder(); var firstMoneyResource = builder.GetMoney(Amount); var secondMoneyResource = builder.GetMoney(Amount + 32000); Assert.False(firstMoneyResource == secondMoneyResource); }
public void SameValueObjectsMustBeEqualWithObjectEqualityOperator() { var builder = new MoneyValueObjectBuilder(); var firstMoneyResource = builder.GetMoney(Amount); var secondMoneyResource = builder.GetMoney(Amount); Assert.True(firstMoneyResource == secondMoneyResource); }
public void DifferentValueObjectsMustBeNotEqualsWithEqualsMethod() { var builder = new MoneyValueObjectBuilder(); var firstMoneyResource = builder.GetMoney(Amount); var secondMoneyResource = builder.GetMoney(Amount + 32000); Assert.False(firstMoneyResource.Equals(secondMoneyResource)); }
public void SameValueObjectsMustBeEqualsWithEqualsMethod() { var builder = new MoneyValueObjectBuilder(); var firstMoneyResource = builder.GetMoney(Amount); var secondMoneyResource = builder.GetMoney(Amount); Assert.True(firstMoneyResource.Equals(secondMoneyResource)); }