public void CervezaGrande() { BeverageComponent b = new Beer(); b = new GrandSizeDecorator(b); Assert.True(b.getCost() == 4.25); Assert.True(b.getDescription() == "Cerveza, tamaño grande"); }
public void CafeConHieloGrande() { BeverageComponent b = new Coffee(); b = new IceDecorator(b); b = new GrandSizeDecorator(b); Assert.True(b.getCost() == 3.75); Assert.True(b.getDescription() == "Café, con hielo, tamaño grande"); }