public void SpecialShouldHoldAll() { Brontowurst brontowurst = new Brontowurst(); brontowurst.HoldBrautwurst(); brontowurst.HoldBun(); brontowurst.HoldOnion(); brontowurst.HoldPeppers(); Assert.Collection <string>(brontowurst.Special, item => { Assert.Equal("Hold Whole Wheat Bun", item); }, item => { Assert.Equal("Hold Brautwurst", item); }, item => { Assert.Equal("Hold Peppers", item); }, item => { Assert.Equal("Hold Onion", item); } ); }
public void SpecialsShouldHoldBrat() { Brontowurst brontowurst = new Brontowurst(); brontowurst.HoldBrautwurst(); Assert.Collection <string>(brontowurst.Special, item => { Assert.Equal("Hold Brautwurst", item); }); }
/// <summary> /// Holds the brat when the button is clicked /// </summary> /// <param name="sender"></param> /// <param name="args"></param> private void OnHoldBrautwurst(object sender, RoutedEventArgs args) { brontowurst.HoldBrautwurst(); }