public void ShouldBeAbleToSetFruit(FruitFilling fruit) { var cobbler = new Cobbler(); cobbler.Fruit = fruit; Assert.Equal(fruit, cobbler.Fruit); }
/// <summary> /// Separates the cases of FruitFilling to the correct FruitFilling RadioButton to be checked /// </summary> /// <param name="size"></param> public void FruitFillingSwitch(FruitFilling filling) { switch (filling) { case FruitFilling.Peach: PeachButton.IsChecked = true; CherryButton.IsChecked = false; BlueBerryButton.IsChecked = false; break; case FruitFilling.Cherry: PeachButton.IsChecked = false; CherryButton.IsChecked = true; BlueBerryButton.IsChecked = false; break; case FruitFilling.Blueberry: PeachButton.IsChecked = false; CherryButton.IsChecked = false; BlueBerryButton.IsChecked = true; break; default: break; } }
public void ChangingFillingShouldInvokePropertyChangedOnFruit(FruitFilling fruit) { var cobbler = new Cobbler(); Assert.PropertyChanged(cobbler, "Fruit", () => cobbler.Fruit = fruit); }
public void ChangingFruitShouldInvokePropertyChangedForFruit(FruitFilling f) { var cobbler = new Cobbler(); Assert.PropertyChanged(cobbler, "Fruit", () => { cobbler.Fruit = f; }); }
public void ChangingFruitShouldImplementINotifyPropertyChanged(FruitFilling fruitFilling) { var cobbler = new Cobbler(); Assert.PropertyChanged(cobbler, "Fruit", () => { cobbler.Fruit = fruitFilling; }); }
public void CobblerFruitChangeShouldNotifyPropertyChanged(FruitFilling filling) { Cobbler cobbler = new Cobbler(); Assert.PropertyChanged(cobbler, "Fruit", () => { cobbler.Fruit = filling; }); }