Beispiel #1
0
        public void GetVarietyBoxes_Returns_Total_For_Variety()
        {
            masterOrder.AddOrder(new CookieOrder("Tagalongs", 3));

            var result = masterOrder.GetVarietyBoxes("Tagalongs");

            Assert.Equal(3, result);
        }
        public void shouldgetvarietyboxes()
        {
            MasterOrder order = new MasterOrder();

            //ACT
            order.AddOrder(new CookieOrder("mint", 5));
            order.AddOrder(new CookieOrder("Joescookies", 5));
            order.AddOrder(new CookieOrder("mint", 5));
            int k = order.GetVarietyBoxes("mint");

            Assert.Equal(10, k);
        }
        public void Gets_Total_Boxes_of_Variety()
        {
            MasterOrder newMaster = new MasterOrder();

            newMaster.AddOrder(new CookieOrder("Thin Mints", 10));
            newMaster.AddOrder(new CookieOrder("Thin Mints", 5));
            newMaster.AddOrder(new CookieOrder("S'mores", 3));

            int varietyTotal = newMaster.GetVarietyBoxes("Thin");

            Assert.Equal(15, varietyTotal);
        }
Beispiel #4
0
        public void ShouldGetVarietyBoxes()//GetVarietyBoxes
        {
            //ARRANGE
            MasterOrder testorder = new MasterOrder();

            //ACT
            testorder.AddOrder(new CookieOrder("fudge", 12));
            testorder.AddOrder(new CookieOrder("zackscookies", 1));
            testorder.AddOrder(new CookieOrder("zackscookies", 2));
            int zacksboxes = testorder.GetVarietyBoxes("zackscookies");

            //ASSERT
            Assert.Equal(3, zacksboxes);
        }