public void DumpHtml() { const string svgFile = "input.svg"; string svgFilePath = Path.Combine(GetTemporaryTestDirectory(), svgFile); string outputFilePath = SvgHtmlWrapper.DumpHtml(new GraphvizSize(150, 150), svgFilePath); // File exists and is valid HTML string htmlContent = CheckValidHtmlFile(outputFilePath); StringAssert.Contains(svgFilePath, htmlContent); }
public void DumpHtml_Throws() { // ReSharper disable once ReturnValueOfPureMethodIsNotUsed // ReSharper disable once AssignNullToNotNullAttribute Assert.Throws <ArgumentNullException>(() => SvgHtmlWrapper.DumpHtml(new GraphvizSize(150, 150), null)); }