Esempio n. 1
0
        public void TestMudCakeRecipe()
        {
            var blankCake = new MudCake();
            var cooker    = new MudCakeCooker(blankCake);

            var finalResult = cooker.Cook();

            Assert.Equal("Mud!", finalResult.SecretIngredient);
        }
Esempio n. 2
0
        public void TestMudCakeHadIcingAdded()
        {
            MudCake mudCake = new MudCake();

            mudCake.Accept(_cakeVisitor);

            Assert.Equal("Chocolate Icing", mudCake.Icing);
            Assert.True(mudCake.DoubleIcing);
        }