public virtual void PathNodeRendererMoveToTest1() { String filename = "pathNodeRendererMoveToTest1.pdf"; PdfDocument doc = new PdfDocument(new PdfWriter(destinationFolder + filename)); doc.AddNewPage(); IDictionary <String, String> pathShapes = new Dictionary <String, String>(); pathShapes.Put("d", "M 100 100 l300 100 L200 300 z"); ISvgNodeRenderer pathRenderer = new PathSvgNodeRenderer(); pathRenderer.SetAttributesAndStyles(pathShapes); SvgDrawContext context = new SvgDrawContext(null, null); PdfCanvas cv = new PdfCanvas(doc, 1); context.PushCanvas(cv); pathRenderer.Draw(context); doc.Close(); String result = new CompareTool().CompareByContent(destinationFolder + filename, sourceFolder + "cmp_" + filename , destinationFolder, "diff_"); if (result != null && !result.Contains("No visual differences")) { NUnit.Framework.Assert.Fail(result); } }