Ejemplo n.º 1
0
        public void PainterFactoryTest()
        {
            var      factory  = Registry.Pooled <IPainterFactory>();
            var      shape    = new RectangleShape();
            IPainter _painter = factory.CreatePainter(shape.GetType());

            Assert.IsNotNull(_painter);
            _painter = factory.CreatePainter(typeof(string));
            Assert.IsNotNull(_painter);
        }