예제 #1
0
        public void AddBreadOrder_AddsArrayValues_7()
        {
            int [] breadArray = new int [3] {
                2, 4, 1
            };
            Bread newBread = new Bread(breadArray);

            newBread.AddBreadOrder();
            Assert.AreEqual(7, newBread.Order);
        }
예제 #2
0
        public void SetPrice_Gives3rdBreadFree_20()
        {
            int [] breadArray = new int [3] {
                2, 4, 1
            };
            Bread newBread = new Bread(breadArray);

            newBread.AddBreadOrder();
            newBread.SetPrice();

            Assert.AreEqual(25, newBread.BreadPrice);
        }