Exemplo n.º 1
0
        public void NotAllowNegPrice()
        {
            MorkDrinks  md = new MorkDrinks(-100);
            MorkEntrees me = new MorkEntrees(2);
            MorkSides   ms = new MorkSides(3);

            Order o = new Order();

            o.Add(md);
            o.Add(me);
            o.Add(ms);
            Assert.Equal <double>(0, o.SubtotalCost);
        }
Exemplo n.º 2
0
        public void ShouldHaveCorrectPrice()
        {
            MorkDrinks  md = new MorkDrinks(1);
            MorkEntrees me = new MorkEntrees(2);
            MorkSides   ms = new MorkSides(3);

            Order o = new Order();

            o.Add(md);
            o.Add(me);
            o.Add(ms);
            Assert.Equal <double>(6, o.SubtotalCost);
        }