Esempio n. 1
0
        public void DifferentValueObjectsComparisonMustBeTrueWithObjectNotEqualityOperator()
        {
            var builder             = new MoneyValueObjectBuilder();
            var firstMoneyResource  = builder.GetMoney(Amount);
            var secondMoneyResource = builder.GetMoney(Amount + 32000);

            Assert.True(firstMoneyResource != secondMoneyResource);
        }
Esempio n. 2
0
        public void SameValueObjectsComparisonMustBeFalseWithObjectNotEqualityOperator()
        {
            var builder             = new MoneyValueObjectBuilder();
            var firstMoneyResource  = builder.GetMoney(Amount);
            var secondMoneyResource = builder.GetMoney(Amount);

            Assert.False(firstMoneyResource != secondMoneyResource);
        }
Esempio n. 3
0
        public void DifferentValueObjectsMustNotEqualWithObjectEqualityOperator()
        {
            var builder             = new MoneyValueObjectBuilder();
            var firstMoneyResource  = builder.GetMoney(Amount);
            var secondMoneyResource = builder.GetMoney(Amount + 32000);

            Assert.False(firstMoneyResource == secondMoneyResource);
        }
Esempio n. 4
0
        public void SameValueObjectsMustBeEqualWithObjectEqualityOperator()
        {
            var builder             = new MoneyValueObjectBuilder();
            var firstMoneyResource  = builder.GetMoney(Amount);
            var secondMoneyResource = builder.GetMoney(Amount);

            Assert.True(firstMoneyResource == secondMoneyResource);
        }
Esempio n. 5
0
        public void DifferentValueObjectsMustBeNotEqualsWithEqualsMethod()
        {
            var builder             = new MoneyValueObjectBuilder();
            var firstMoneyResource  = builder.GetMoney(Amount);
            var secondMoneyResource = builder.GetMoney(Amount + 32000);

            Assert.False(firstMoneyResource.Equals(secondMoneyResource));
        }
Esempio n. 6
0
        public void SameValueObjectsMustBeEqualsWithEqualsMethod()
        {
            var builder             = new MoneyValueObjectBuilder();
            var firstMoneyResource  = builder.GetMoney(Amount);
            var secondMoneyResource = builder.GetMoney(Amount);

            Assert.True(firstMoneyResource.Equals(secondMoneyResource));
        }