public void TestGetStrokeMap()
        {
            DrawingVisual  drawingVisual = new DrawingVisual();
            DrawingContext g2d           = drawingVisual.RenderOpen();
            WPFDrawVisitor visitor       = new WPFDrawVisitor(g2d);

            Assert.IsNotNull(visitor.strokeMap);
        }
        public void TestConstructor()
        {
            DrawingVisual  drawingVisual = new DrawingVisual();
            DrawingContext g2d           = drawingVisual.RenderOpen();
            WPFDrawVisitor visitor       = new WPFDrawVisitor(g2d);

            Assert.IsNotNull(visitor);
        }
        public void TestGetGraphics()
        {
            DrawingVisual  drawingVisual = new DrawingVisual();
            DrawingContext dc            = drawingVisual.RenderOpen();
            WPFDrawVisitor visitor       = new WPFDrawVisitor(dc);

            Assert.AreEqual(dc, visitor.dc);
        }
        public void TestGetRendererModel()
        {
            DrawingVisual  drawingVisual = new DrawingVisual();
            DrawingContext g2d           = drawingVisual.RenderOpen();
            WPFDrawVisitor visitor       = new WPFDrawVisitor(g2d);
            RendererModel  model         = new RendererModel();

            visitor.RendererModel = model;
            Assert.AreEqual(model, visitor.RendererModel);
        }
        public void TestSetRendererModel()
        {
            DrawingVisual  drawingVisual = new DrawingVisual();
            DrawingContext g2d           = drawingVisual.RenderOpen();
            WPFDrawVisitor visitor       = new WPFDrawVisitor(g2d)
            {
                RendererModel = new RendererModel()
            };

            // at least we now know it did not crash...
            Assert.IsNotNull(visitor);
        }
        public void TestVisit()
        {
            DrawingVisual  drawingVisual = new DrawingVisual();
            DrawingContext g2d           = drawingVisual.RenderOpen();
            WPFDrawVisitor visitor       = new WPFDrawVisitor(g2d)
            {
                FontManager = new WPFFontManager()
            };

            visitor.Visit(new TextElement(new WPF.Point(2, 3), "Foo", WPF::Media.Colors.Black), Transform.Identity);
            // at least we now know it did not crash...
            Assert.IsNotNull(visitor);
        }