public void HoldBunAddsHoldBunToSpecial() { Brontowurst entree = new Brontowurst(); entree.HoldBun(); Assert.Equal("Hold Bun", entree.Special[0]); }
public void HoldBunShouldRemoveBun() { Brontowurst bw = new Brontowurst(); bw.HoldBun(); Assert.DoesNotContain <string>("Whole Wheat Bun", bw.Ingredients); }
public void SpecialShouldHoldBun() { Brontowurst bw = new Brontowurst(); bw.HoldBun(); Assert.Collection <string>(bw.Special, item => { Assert.Equal("Hold Bun", item); }); }
public void HoldBunShouldProvideCorrectSpecial() { Brontowurst bw = new Brontowurst(); bw.HoldBun(); Assert.Contains("Hold Bun", bw.Special); }
public void ShouldHaveCorrectSpecialAfterHoldingBun() { Brontowurst bw = new Brontowurst(); bw.HoldBun(); Assert.Contains <string>("Hold Bun", bw.Special); }
public void BrontowurstHoldBun() { Brontowurst bw = new Brontowurst(); bw.HoldBun(); string[] test = { "Hold Bun" }; Assert.Equal(test, bw.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 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 ShouldHaveCorrectSpecialHoldBun() { Brontowurst bw = new Brontowurst(); bw.HoldBun(); Assert.Contains("Hold Bun", bw.Special); Assert.Single(bw.Special); }
private void OnHoldBun(object sender, RoutedEventArgs args) { bron.HoldBun(); if (combo != null) { combo.Entree = bron; } }
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 AddBunShouldAddBun() { Brontowurst bw = new Brontowurst(); bw.HoldBun(); bw.AddBun(); Assert.Contains("Whole Wheat Bun", bw.Ingredients); }
public void ShouldHaveHoldBunSpecial() { Brontowurst b = new Brontowurst(); b.HoldBun(); string[] special = { "Hold Bun" }; Assert.Equal(b.Special, special); }
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 ShouldUpdateSpecialWhenHoldBun() { Brontowurst bw = new Brontowurst(); Assert.PropertyChanged(bw, "Special", () => { bw.HoldBun(); }); }
public void HoldingBunShouldNotifyChange(string expected) { Brontowurst bw = new Brontowurst(); Assert.PropertyChanged(bw, expected, () => { bw.HoldBun(); }); }
public void BrotowurstHoldBunShouldNotifyPropertyChanged() { Brontowurst bronto = new Brontowurst(); Assert.PropertyChanged(bronto, "Special", () => { bronto.HoldBun(); }); }
public void HoldBunShouldNotifyOfSpecialPropertyChange() { Brontowurst bw = new Brontowurst(); Assert.PropertyChanged(bw, "Special", () => { bw.HoldBun(); }); }
public void HoldBunShouldNotifyOfPropertyChanged(string propertyName) { Brontowurst b = new Brontowurst(); Assert.PropertyChanged(b, propertyName, () => { b.HoldBun(); }); }
public void HoldingBunShouldNotifySpecialChange() { Brontowurst b = new Brontowurst(); Assert.PropertyChanged(b, "Special", () => { b.HoldBun(); }); }
public void SpecialShouldHoldBun() { Brontowurst bw = new Brontowurst(); bw.HoldBun(); string[] special = bw.Special; Assert.Contains <string>("Hold Bun", special); Assert.Equal <int>(1, special.Length); }
public void HoldingBunShouldNotifyIngredientsChange() { Brontowurst bw = new Brontowurst(); Assert.PropertyChanged(bw, "Ingredients", () => { bw.HoldBun(); }); }
private void Click_HoldBun(object sender, RoutedEventArgs e) { if (sender.Equals(Button_HoldBun)) { if (DataContext is Order order) { _brontowurst.HoldBun(); } } }
public void HoldBunShouldAddToSpecial() { Brontowurst b = new Brontowurst(); b.HoldBun(); Assert.Collection <string>(b.Special, item => { Assert.Equal("Hold Bun", 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); }
public void BrontowurstHoldALL() { Brontowurst bw = new Brontowurst(); bw.HoldBun(); bw.HoldPeppers(); bw.HoldOnion(); string[] test = { "Hold Bun", "Hold Peppers", "Hold Onions" }; Assert.Equal(test, bw.Special); }
public void ShouldHaveCorrectEntreeSpecial() { Brontowurst b = new Brontowurst(); b.HoldBun(); CretaceousCombo combo = new CretaceousCombo(b); string[] special = { "Hold Bun", "Small Fryceritops", "Small Cola Sodasaurus" }; Assert.Equal(combo.Special, special); }
public void HoldBunrShouldAddToSpecial() { Brontowurst bw = new Brontowurst(); bw.HoldBun(); Assert.Collection <string>(bw.Special, item => { Assert.Equal("Hold Whole Wheat Bun", item); }); }
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 OnHoldBun(object sender, RoutedEventArgs e) { if (brontowurst != null) { brontowurst.HoldBun(); } else { ((Brontowurst)combo.Entree).HoldBun(); } }