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); }