public async void ShouldRenderSimpleGraph() { var renderer = new QuickChartSvgRenderer(); var svg = await renderer.RenderSvg("graph{a--b}"); svg.Should().NotBeNull(); }
public async void ShouldRenderChartMarkup() { var renderer = new QuickChartSvgRenderer(); var svg = await renderer.RenderSvg("digraph G {0[label = <<S>P: SubnetCidr</S>>]}"); svg.ToString().Should().Contain("text-decoration=\"line-through\""); }
public async void ShouldConnectToQuickChartIO() { var renderer = new QuickChartSvgRenderer(); var stat = await renderer.GetStatus(); stat.Should().Be(RendererStatus.Ok); }
public async void ShouldRenderLargeGraph() { var changeDetails = JsonConvert.DeserializeObject <List <ChangesetDetails> >(this.changeJson).First(); var renderer = new QuickChartSvgRenderer(); var ok = await renderer.GetStatus() == RendererStatus.Ok; Skip.IfNot(ok, "Could not render SVG. Check rendering API https://quickchart.io/graphviz"); var svg = await changeDetails.RenderSvg(renderer); svg.Should().NotBeNull(); }