コード例 #1
0
 /// <summary>
 /// Resets the entree to original values.
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="args"></param>
 private void SelectReset(object sender, RoutedEventArgs args)
 {
     steakosaurus.AddBun();
     steakosaurus.AddPickle();
     steakosaurus.AddKetchup();
     steakosaurus.AddMustard();
     SetUpSteakosaurusBurgerSelection();
 }
コード例 #2
0
        public void AddPickleShouldAddPickle()
        {
            SteakosaurusBurger sb = new SteakosaurusBurger();

            sb.HoldPickle();
            sb.AddPickle();
            Assert.Contains("Pickle", sb.Ingredients);
        }
コード例 #3
0
        public void AddPickleShouldNotifyOfSpecialPropertyChange()
        {
            SteakosaurusBurger sb = new SteakosaurusBurger();

            Assert.PropertyChanged(sb, "Special", () =>
            {
                sb.AddPickle();
            });
        }