Beispiel #1
0
        public void HoldingKetchupAndMustardShouldAddTwoInstructions()
        {
            var burger = new Data.DakotaDoubleBurger();

            burger.Ketchup = false;
            burger.Mustard = false;
            Assert.Contains("hold ketchup", burger.SpecialInstructions);
            Assert.Contains("hold mustard", burger.SpecialInstructions);
        }
Beispiel #2
0
        public void HoldingMayoShouldAddInstruction()
        {
            var burger = new Data.DakotaDoubleBurger();

            burger.Mayo = false;
            Assert.Collection(burger.SpecialInstructions, instruction =>
            {
                Assert.Equal("hold mayo", instruction);
            });
        }
Beispiel #3
0
        public void HoldingKetchupShouldAddInstruction()
        {
            var burger = new Data.DakotaDoubleBurger();

            burger.Ketchup = false;
            Assert.Collection(burger.SpecialInstructions, instruction =>
            {
                Assert.Equal("hold ketchup", instruction);
            });
        }
Beispiel #4
0
        public void HoldingLettuceShouldAddInstruction()
        {
            var burger = new Data.DakotaDoubleBurger();

            burger.Lettuce = false;
            Assert.Collection(burger.SpecialInstructions, instruction =>
            {
                Assert.Equal("hold lettuce", instruction);
            });
        }
Beispiel #5
0
        public void HoldingBunCheeseAndPickleShouldAddThreeInstructions()
        {
            var burger = new Data.DakotaDoubleBurger();

            burger.Bun    = false;
            burger.Cheese = false;
            burger.Pickle = false;
            Assert.Contains("hold bun", burger.SpecialInstructions);
            Assert.Contains("hold cheese", burger.SpecialInstructions);
            Assert.Contains("hold pickle", burger.SpecialInstructions);
        }
Beispiel #6
0
        public void DefaultSpecialInstructionsShouldBeEmpty()
        {
            var burger = new Data.DakotaDoubleBurger();

            Assert.Empty(burger.SpecialInstructions);
        }
Beispiel #7
0
        public void DefaultCaloriesShouldBeCorrect()
        {
            var burger = new Data.DakotaDoubleBurger();

            Assert.Equal <uint>(464, burger.Calories);
        }
Beispiel #8
0
        public void DefaultPriceShouldBeCorrect()
        {
            var burger = new Data.DakotaDoubleBurger();

            Assert.Equal(5.20, burger.Price);
        }