public void ChangingPickleInvokesPropertyChangedOnPickle() { var burger = new Trailburger(); Assert.PropertyChanged(burger, "Pickle", () => { burger.Pickle = false; }); }
public void ChangingMustardInvokesPropertyChangedOnMustard() { var burger = new Trailburger(); Assert.PropertyChanged(burger, "Mustard", () => { burger.Mustard = false; }); }
public void ChangingMustardInvokesPropertyChangedOnSpecialInstructions() { var burger = new Trailburger(); Assert.PropertyChanged(burger, "SpecialInstructions", () => { burger.Mustard = false; }); }
public void ChangingBunInvokesPropertyChangedOnBun() { var burger = new Trailburger(); Assert.PropertyChanged(burger, "Bun", () => { burger.Bun = false; }); }
public void ChangingKetchupInvokesPropertyChangedOnKetchup() { var burger = new Trailburger(); Assert.PropertyChanged(burger, "Ketchup", () => { burger.Ketchup = false; }); }
public void ChangingCheeseInvokesPropertyChangedOnCheese() { var burger = new Trailburger(); Assert.PropertyChanged(burger, "Cheese", () => { burger.Cheese = false; }); }
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); }
public void HoldingCheeseShouldAddInstruction() { var burger = new Trailburger(); burger.Cheese = false; Assert.Collection(burger.SpecialInstructions, instruction => { Assert.Equal("hold cheese", instruction); }); }
public void HoldingKetchupShouldAddInstruction() { var burger = new Trailburger(); burger.Ketchup = false; Assert.Collection(burger.SpecialInstructions, instruction => { Assert.Equal("hold ketchup", instruction); }); }
public void HoldingMustardShouldAddInstruction() { var burger = new Trailburger(); burger.Mustard = false; Assert.Collection(burger.SpecialInstructions, instruction => { Assert.Equal("hold mustard", instruction); }); }
public void HoldingBunShouldAddInstruction() { var burger = new Trailburger(); burger.Bun = false; Assert.Collection(burger.SpecialInstructions, instruction => { Assert.Equal("hold bun", instruction); }); }
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); }
public void TrailburgerImplementsINotifyPropertyChanged() { var burger = new Trailburger(); Assert.IsAssignableFrom <INotifyPropertyChanged>(burger); }
public void DefaultSpecialInstructionsShouldBeEmpty() { var burger = new Trailburger(); Assert.Empty(burger.SpecialInstructions); }
public void DefaultCaloriesShouldBeCorrect() { var burger = new Trailburger(); Assert.Equal <uint>(288, burger.Calories); }
public void DefaultPriceShouldBeCorrect() { var burger = new Trailburger(); Assert.Equal(4.50, burger.Price); }