コード例 #1
0
        public void TotalPricewithpromo()
        {
            int totaolprice = Pricecalculator.TotalPrice(TestInput2, true, "InstantPromo");

            Assert.AreEqual(370, totaolprice);
            int totaol = Pricecalculator.TotalPrice(TestInput3, true, "InstantPromo");

            Assert.AreEqual(280, totaol);
        }
コード例 #2
0
        public void TotalPricewithoutpromo()
        {
            int totaolprice = Pricecalculator.TotalPrice(TestInput1, false, "");

            Assert.AreEqual(100, totaolprice);
        }