Ejemplo n.º 1
0
        public void AddKetchupShouldAddKetchup()
        {
            TRexKingBurger trex = new TRexKingBurger();

            trex.HoldKetchup();
            trex.AddKetchup();
            Assert.Contains("Ketchup", trex.Ingredients);
        }
Ejemplo n.º 2
0
        public void AddKetchupShouldNotifyOfSpecialPropertyChange()
        {
            TRexKingBurger trex = new TRexKingBurger();

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