コード例 #1
0
        public void BreadCostCalc_EachBaguetteCosts3_6()
        {
            Bread newBreadOrder = new Bread("baguette", "2");

            newBreadOrder.IsBreadOrderNumberValid();
            newBreadOrder.BreadCostCalc();
            Assert.AreEqual(6, newBreadOrder.BreadCost);
        }
コード例 #2
0
        public void BreadCostCalc_EachSourdoughBreadCosts8_16()
        {
            Bread newBreadOrder = new Bread("sourdough", "2");

            newBreadOrder.IsBreadOrderNumberValid();
            newBreadOrder.BreadCostCalc();
            Assert.AreEqual(16, newBreadOrder.BreadCost);
        }
コード例 #3
0
        public void BreadCostCalc_EachWhiteBreadCosts5_10()
        {
            Bread newBreadOrder = new Bread("white", "2");

            newBreadOrder.IsBreadOrderNumberValid();
            newBreadOrder.BreadCostCalc();
            Assert.AreEqual(10, newBreadOrder.BreadCost);
        }
コード例 #4
0
        public void BreadCostCalc_Every21stBreadReduceCostBy2xBreadTypeCost_60()
        {
            Bread newBreadOrder = new Bread("white", "21");

            newBreadOrder.IsBreadOrderNumberValid();
            newBreadOrder.BreadCostCalc();
            Assert.AreEqual(60, newBreadOrder.BreadCost);
        }
コード例 #5
0
        public void BreadCostCalc_EveryThirdBreadCosts0_10()
        {
            Bread newBreadOrder = new Bread("white", "3");

            newBreadOrder.IsBreadOrderNumberValid();
            newBreadOrder.BreadCostCalc();
            Assert.AreEqual(10, newBreadOrder.BreadCost);
        }
コード例 #6
0
        public void BreadCostCalc_EachItalianBreadCosts7_14()
        {
            Bread newBreadOrder = new Bread("italian", "2");

            newBreadOrder.IsBreadOrderNumberValid();
            newBreadOrder.BreadCostCalc();
            Assert.AreEqual(14, newBreadOrder.BreadCost);
        }