Beispiel #1
0
        public void OrderIncreaseQuantityTest()
        {
            const int NEW_QUANTITY = 2;

            _order.IncreaseQuantity();
            Assert.AreEqual(NEW_QUANTITY.ToString(), _target.GetProperty("Quantity"));
        }
Beispiel #2
0
        public void OrderPropertyTest()
        {
            const int NEW_QUANTITY = 2;

            _order.Quantity = NEW_QUANTITY.ToString();
            int total = (Convert.ToInt16(INIT_PRICE)) * NEW_QUANTITY;

            Assert.AreEqual(NEW_QUANTITY.ToString(), _target.GetProperty("Quantity"));
            Assert.AreEqual(total.ToString(), _target.GetProperty("Total"));
        }