Esempio n. 1
0
        public void ChangingPickleInvokesPropertyChangedOnPickle()
        {
            var burger = new Trailburger();

            Assert.PropertyChanged(burger, "Pickle", () =>
            {
                burger.Pickle = false;
            });
        }
Esempio n. 2
0
        public void ChangingMustardInvokesPropertyChangedOnMustard()
        {
            var burger = new Trailburger();

            Assert.PropertyChanged(burger, "Mustard", () =>
            {
                burger.Mustard = false;
            });
        }
Esempio n. 3
0
        public void ChangingMustardInvokesPropertyChangedOnSpecialInstructions()
        {
            var burger = new Trailburger();

            Assert.PropertyChanged(burger, "SpecialInstructions", () =>
            {
                burger.Mustard = false;
            });
        }
Esempio n. 4
0
        public void ChangingBunInvokesPropertyChangedOnBun()
        {
            var burger = new Trailburger();

            Assert.PropertyChanged(burger, "Bun", () =>
            {
                burger.Bun = false;
            });
        }
Esempio n. 5
0
        public void ChangingKetchupInvokesPropertyChangedOnKetchup()
        {
            var burger = new Trailburger();

            Assert.PropertyChanged(burger, "Ketchup", () =>
            {
                burger.Ketchup = false;
            });
        }
Esempio n. 6
0
        public void ChangingCheeseInvokesPropertyChangedOnCheese()
        {
            var burger = new Trailburger();

            Assert.PropertyChanged(burger, "Cheese", () =>
            {
                burger.Cheese = false;
            });
        }
Esempio n. 7
0
        public void HoldingKetchupAndMustardShouldAddTwoInstructions()
        {
            var burger = new Trailburger();

            burger.Ketchup = false;
            burger.Mustard = false;
            Assert.Contains("hold ketchup", burger.SpecialInstructions);
            Assert.Contains("hold mustard", burger.SpecialInstructions);
        }
Esempio n. 8
0
        public void HoldingCheeseShouldAddInstruction()
        {
            var burger = new Trailburger();

            burger.Cheese = false;
            Assert.Collection(burger.SpecialInstructions, instruction =>
            {
                Assert.Equal("hold cheese", instruction);
            });
        }
Esempio n. 9
0
        public void HoldingKetchupShouldAddInstruction()
        {
            var burger = new Trailburger();

            burger.Ketchup = false;
            Assert.Collection(burger.SpecialInstructions, instruction =>
            {
                Assert.Equal("hold ketchup", instruction);
            });
        }
Esempio n. 10
0
        public void HoldingMustardShouldAddInstruction()
        {
            var burger = new Trailburger();

            burger.Mustard = false;
            Assert.Collection(burger.SpecialInstructions, instruction =>
            {
                Assert.Equal("hold mustard", instruction);
            });
        }
Esempio n. 11
0
        public void HoldingBunShouldAddInstruction()
        {
            var burger = new Trailburger();

            burger.Bun = false;
            Assert.Collection(burger.SpecialInstructions, instruction =>
            {
                Assert.Equal("hold bun", instruction);
            });
        }
Esempio n. 12
0
        public void HoldingBunCheeseAndPickleShouldAddThreeInstructions()
        {
            var burger = new Trailburger();

            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);
        }
Esempio n. 13
0
        public void TrailburgerImplementsINotifyPropertyChanged()
        {
            var burger = new Trailburger();

            Assert.IsAssignableFrom <INotifyPropertyChanged>(burger);
        }
Esempio n. 14
0
        public void DefaultSpecialInstructionsShouldBeEmpty()
        {
            var burger = new Trailburger();

            Assert.Empty(burger.SpecialInstructions);
        }
Esempio n. 15
0
        public void DefaultCaloriesShouldBeCorrect()
        {
            var burger = new Trailburger();

            Assert.Equal <uint>(288, burger.Calories);
        }
Esempio n. 16
0
        public void DefaultPriceShouldBeCorrect()
        {
            var burger = new Trailburger();

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