コード例 #1
0
        public void Especial()
        {
            var especial = new Orujo(new Nata(new Leche(new Leche(new Coffee()))));

            Assert.AreEqual(2.70m, especial.Precio()); //café + doble de leche + nata + Orujo
        }
コード例 #2
0
        public void Carajillo()
        {
            var carajillo = new Orujo(new Coffee());

            Assert.AreEqual(2, carajillo.Precio());
        }