Example #1
0
        public void AddLettuceShouldAddLettuce()
        {
            TRexKingBurger trex = new TRexKingBurger();

            trex.HoldLettuce();
            trex.AddLettuce();
            Assert.Contains("Lettuce", trex.Ingredients);
        }
Example #2
0
        public void AddLettuceShouldNotifyOfSpecialPropertyChange()
        {
            TRexKingBurger trex = new TRexKingBurger();

            Assert.PropertyChanged(trex, "Special", () =>
            {
                trex.AddLettuce();
            });
        }