Exemplo n.º 1
0
        public void Test_VanillaNirvanaBuilder_BuildTopping()
        {
            string expected = "Ice cream ingredients: flaked coconut\n";
            var    result   = new VanillaNirvanaBuilder();

            result.BuildTopping();
            Assert.AreEqual(expected, result.GetProduct().ListIngredients());
        }
Exemplo n.º 2
0
        public void Test_VanillaNirvanaBuilder_BuildCup()
        {
            string expected = "Ice cream ingredients: waffle cone\n";
            var    result   = new VanillaNirvanaBuilder();

            result.BuildCup();
            Assert.AreEqual(expected, result.GetProduct().ListIngredients());
        }
Exemplo n.º 3
0
        public void Test_VanillaNirvanaBuilder_BuildFlavor()
        {
            string expected = "Ice cream ingredients: sweet vanilla ball\n";
            var    result   = new VanillaNirvanaBuilder();

            result.BuildFlavor();
            Assert.AreEqual(expected, result.GetProduct().ListIngredients());
        }
Exemplo n.º 4
0
        public void Test_Director_VanillaNirvana_BuildFullFeaturedIceCream()
        {
            var director = new Director();
            var result   = new VanillaNirvanaBuilder();

            director.Builder = result;
            string expected = "Ice cream ingredients: waffle cone, sweet vanilla ball, flaked coconut\n";

            director.BuildFullFeaturedIceCream();
            Assert.AreEqual(expected, result.GetProduct().ListIngredients());
        }