Exemplo n.º 1
0
        public void AddPastry_IsQuantity_Int()
        {
            Pastry testPastry   = new Pastry("Scone");
            int    testQuantity = 5;

            Assert.AreEqual(testQuantity, testPastry.AddPastry(5));
        }
Exemplo n.º 2
0
        public void PastrySubtotal_IsSubtotal_Int()
        {
            Pastry testPastry = new Pastry("Scone");

            testPastry.AddPastry(41);
            testPastry.PastrySubtotal();
            int testSubtotal = 69;

            Assert.AreEqual(testSubtotal, testPastry.PastriesSubtotal);
        }
Exemplo n.º 3
0
        public void AddPastry_AddsOneToPastryCount_Pastries()
        {
            //Arrange
            Pastry pastryOrder = new Pastry(8);

            //Act
            pastryOrder.AddPastry();
            int result = 9;

            //Assert
            Assert.AreEqual(result, pastryOrder.Pastries);
        }