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

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

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

            Assert.AreEqual(dc, visitor.dc);
        }
Esempio n. 4
0
        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);
        }
Esempio n. 5
0
        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);
        }
Esempio n. 6
0
        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);
        }