public void BrontowurstPropertyChange() { Brontowurst bw = new Brontowurst(); Assert.PropertyChanged(bw, "Special", () => bw.HoldBun()); Assert.PropertyChanged(bw, "Special", () => bw.HoldOnion()); Assert.PropertyChanged(bw, "Special", () => bw.HoldPeppers()); }
public void BrontowurstHoldPeppers() { Brontowurst bw = new Brontowurst(); bw.HoldPeppers(); string[] test = { "Hold Peppers" }; Assert.Equal(test, bw.Special); }
public void CheckAllNotifyPropertyChanges(string propertyName) { Brontowurst bw = new Brontowurst(); Assert.PropertyChanged(bw, propertyName, () => bw.HoldOnion()); Assert.PropertyChanged(bw, propertyName, () => bw.HoldPeppers()); Assert.PropertyChanged(bw, propertyName, () => bw.HoldBun()); }
public void SpecialShouldHoldPeppers() { Brontowurst b = new Brontowurst(); b.HoldPeppers(); Assert.Collection <string>(b.Special, item => { Assert.Equal("Hold Peppers", item); }); }
public void ShouldHaveHoldPeppersSpecial() { Brontowurst b = new Brontowurst(); b.HoldPeppers(); string[] special = { "Hold Peppers" }; Assert.Equal(b.Special, special); }
public void HoldingItemsShouldNotifyOfPropertyChange(string s) { Brontowurst dn = new Brontowurst(); Assert.PropertyChanged(dn, s, () => { dn.HoldBun(); }); Assert.PropertyChanged(dn, s, () => { dn.HoldOnion(); }); Assert.PropertyChanged(dn, s, () => { dn.HoldPeppers(); }); }
public void ShouldHaveCorrectSpecialHoldPeppers() { Brontowurst bw = new Brontowurst(); bw.HoldPeppers(); Assert.Contains("Hold Peppers", bw.Special); Assert.Single(bw.Special); }
public void SpecialShouldContainHoldPeppers() { Brontowurst bw = new Brontowurst(); bw.HoldPeppers(); Assert.Collection <string>(bw.Special, item => Assert.Equal("Hold Peppers", item)); }
private void OnHoldPeppers(object sender, RoutedEventArgs args) { bron.HoldPeppers(); if (combo != null) { combo.Entree = bron; } }
public void HoldPeppersShouldRemovePeppers() { Brontowurst bw = new Brontowurst(); bw.HoldPeppers(); Assert.DoesNotContain <string>("Peppers", bw.Ingredients); Assert.Contains <string>("Hold Peppers", bw.Special); }
public void HoldPepperShouldNotifyOfSpecialChanged() { Brontowurst pbj = new Brontowurst(); Assert.PropertyChanged(pbj, "Special", () => { pbj.HoldPeppers(); }); }
public void AddPeppersShouldAddPeppers() { Brontowurst bw = new Brontowurst(); bw.HoldPeppers(); bw.AddPeppers(); Assert.Contains("Peppers", bw.Ingredients); }
public void BrontowurstPrpertyChangesShouldBeCorrect() { Brontowurst b = new Brontowurst(); Assert.PropertyChanged(b, "Special", () => b.HoldBun()); Assert.PropertyChanged(b, "Special", () => b.HoldOnion()); Assert.PropertyChanged(b, "Special", () => b.HoldPeppers()); }
public void HoldingPeppersShouldNotifyIngredientsChange() { Brontowurst bw = new Brontowurst(); Assert.PropertyChanged(bw, "Ingredients", () => { bw.HoldPeppers(); }); }
public void HoldPeppersAndOnionsShouldProvideCorrectSpecial() { Brontowurst bw = new Brontowurst(); bw.HoldPeppers(); bw.HoldOnion(); Assert.Contains("Hold Peppers", bw.Special); Assert.Contains("Hold Onions", bw.Special); }
public void ShouldUpdateSpecialWhenHoldPeppers() { Brontowurst bw = new Brontowurst(); Assert.PropertyChanged(bw, "Special", () => { bw.HoldPeppers(); }); }
public void HoldingPeppersShouldNotifyChange(string expected) { Brontowurst bw = new Brontowurst(); Assert.PropertyChanged(bw, expected, () => { bw.HoldPeppers(); }); }
public void SpecialShouldHoldPeppers() { Brontowurst bw = new Brontowurst(); bw.HoldPeppers(); string[] special = bw.Special; Assert.Contains <string>("Hold Peppers", special); Assert.Equal <int>(1, special.Length); }
public void BrotowurstHoldPeppersShouldNotifyPropertyChanged() { Brontowurst bronto = new Brontowurst(); Assert.PropertyChanged(bronto, "Special", () => { bronto.HoldPeppers(); }); }
public void HoldPeppersShouldNotifyOfSpecialPropertyChange() { Brontowurst bw = new Brontowurst(); Assert.PropertyChanged(bw, "Special", () => { bw.HoldPeppers(); }); }
public void HoldPeppersShouldNotifyOfPropertyChanged(string propertyName) { Brontowurst b = new Brontowurst(); Assert.PropertyChanged(b, propertyName, () => { b.HoldPeppers(); }); }
public void HoldingPeppersShouldNotifySpecialChange() { Brontowurst b = new Brontowurst(); Assert.PropertyChanged(b, "Special", () => { b.HoldPeppers(); }); }
public void BronowurstShouldNotify() { Brontowurst b = new Brontowurst(); Assert.PropertyChanged(b, "Special", () => b.HoldBun()); Assert.PropertyChanged(b, "Special", () => b.HoldBun()); Assert.PropertyChanged(b, "Special", () => b.HoldPeppers()); }
public void ShouldHaveCorrectSpecialForHoldPeppers() { Brontowurst bw = new Brontowurst(); bw.HoldPeppers(); Assert.Collection <string>(bw.Special, item => { Assert.Equal("Hold Peppers", item); }); }
public void ShouldHaveAllSpecials() { Brontowurst b = new Brontowurst(); b.HoldBun(); b.HoldPeppers(); b.HoldOnion(); string[] special = { "Hold Bun", "Hold Peppers", "Hold Onion" }; Assert.Equal(b.Special, special); }
private void Click_HoldPeppers(object sender, RoutedEventArgs e) { if (sender.Equals(Button_HoldPeppers)) { if (DataContext is Order order) { _brontowurst.HoldPeppers(); } } }
public void HoldPeppersShouldAddToSpecial() { Brontowurst bw = new Brontowurst(); bw.HoldPeppers(); Assert.Collection <string>(bw.Special, item => { Assert.Equal("Hold Peppers", item); }); }
public void CheckPropertyChangedBrontowurst() { Brontowurst ft = new Brontowurst(); Assert.PropertyChanged(ft, "Price", () => ft.Price *= 2); Assert.PropertyChanged(ft, "Bun", () => ft.HoldBun()); Assert.PropertyChanged(ft, "Onion", () => ft.HoldOnion()); Assert.PropertyChanged(ft, "Peppers", () => ft.HoldPeppers()); Assert.PropertyChanged(ft, "Special", () => ft.HoldBun()); }
public void BrontowurstShouldGiveCorrectArrayForThreeSpecials() { Brontowurst b = new Brontowurst(); b.HoldBun(); b.HoldOnion(); b.HoldPeppers(); Assert.Contains <string>("Hold Bun", b.Special); Assert.Contains <string>("Hold Onion", b.Special); Assert.Contains <string>("Hold Peppers", b.Special); }
private void HoldPeppersClicked(object sender, RoutedEventArgs e) { bronto?.HoldPeppers(); if (this.combo != null) { if (this.combo.Entree is Brontowurst sb) { sb.HoldPeppers(); } } }