コード例 #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 AddKetchupShouldAddKetchup()
        {
            SteakosaurusBurger sb = new SteakosaurusBurger();

            sb.HoldKetchup();
            sb.AddKetchup();
            Assert.Contains("Ketchup", sb.Ingredients);
        }
コード例 #3
0
        public void AddKetchupShouldNotifyOfSpecialPropertyChange()
        {
            SteakosaurusBurger sb = new SteakosaurusBurger();

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