public void TestDecoratorPricaSum() { ICeramicsFactory ceramicsFactory = new FactoryCerluxPoland(); Plate plateIn = new PlateDecorator(new SmallPLate(ceramicsFactory)) as PlateDecorator; // plateIn.Prepare(); //plateIn.Firing(); Assert.AreEqual(4.5, PlateDecorator.PriceOfPlates1); }
public void TestDecoratorNumberOfELements() { ICeramicsFactory ceramicsFactory = new FactoryCerluxPoland(); Plate plateIn = new PlateDecorator(new SmallPLate( ceramicsFactory)) as PlateDecorator; plateIn.Prepare(); plateIn.Firing(); Assert.AreEqual(1, PlateDecorator.NumberOfPlate); }