public static void DotPath_PropertyGet_MatchesCtorArg() { const string exePath = "dot"; using var graphviz = new GraphvizSystemExecutable(exePath); Assert.That(graphviz.DotPath, Is.EqualTo(exePath)); }
public static void Dispose_WhenInvokedMoreThanOnce_DoesNotThrowError() { using var graphviz = new GraphvizSystemExecutable("dot"); Assert.That(() => { graphviz.Dispose(); graphviz.Dispose(); graphviz.Dispose(); }, Throws.Nothing); }