Example #1
0
        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);
            }
                                       );
        }
Example #2
0
        public void SpecialsShouldHoldBrat()
        {
            Brontowurst brontowurst = new Brontowurst();

            brontowurst.HoldBrautwurst();
            Assert.Collection <string>(brontowurst.Special,
                                       item =>
            {
                Assert.Equal("Hold Brautwurst", item);
            });
        }
Example #3
0
 /// <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();
 }