Exemple #1
0
        public void CalcOrderCostTwoItems_ReturnsTotalDiscountNo_Cost()
        {
            // Arrange
            string flavor        = "Glazed";
            int    orderQuantity = 2;
            int    price         = 2;
            int    orderTotal    = 4;
            Pastry newPastry     = new Pastry(flavor, price);
            // Act
            double result = newPastry.CalculatePastryOrder(orderQuantity);

            // Assert
            Assert.AreEqual(orderTotal, result);
        }