示例#1
0
        public void AddJellyShouldAddJelly()
        {
            PrehistoricPBJ pbj = new PrehistoricPBJ();

            pbj.HoldJelly();
            pbj.AddJelly();
            Assert.Contains("Jelly", pbj.Ingredients);
        }
示例#2
0
        public void AddJellyShouldNotifyOfSpecialPropertyChange()
        {
            PrehistoricPBJ pbj = new PrehistoricPBJ();

            Assert.PropertyChanged(pbj, "Special", () =>
            {
                pbj.AddJelly();
            });
        }
示例#3
0
 /// <summary>
 /// Resets the entree to the original values.
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="args"></param>
 private void SelectReset(object sender, RoutedEventArgs args)
 {
     pbj.AddPeanutButter();
     pbj.AddJelly();
     SetUpPrehistoricPBJSelection();
 }