Exemplo n.º 1
0
        public void AddPriceToTest(float amount, float amountTo, float expectedResult)
        {
            Price expected  = new Price(expectedResult);
            Price basePrice = new Price(amount);
            Price toPrice   = new Price(amountTo);

            basePrice.AddPriceTo(toPrice);
            Assert.AreEqual(expected.ToString(), toPrice.ToString());
        }