示例#1
0
        public static void DotPath_PropertyGet_IsNonEmptyOrWhiteSpace()
        {
            using var graphviz = new GraphvizTemporaryExecutable();
            var nonWhiteSpace = !string.IsNullOrWhiteSpace(graphviz.DotPath);

            Assert.That(nonWhiteSpace, Is.True);
        }
示例#2
0
 public static void Dispose_WhenInvokedMoreThanOnce_DoesNotThrowError()
 {
     using var graphviz = new GraphvizTemporaryExecutable();
     Assert.That(() =>
     {
         graphviz.Dispose();
         graphviz.Dispose();
         graphviz.Dispose();
     }, Throws.Nothing);
 }
示例#3
0
 public static void DotPath_PropertyGet_FileExists()
 {
     using var graphviz = new GraphvizTemporaryExecutable();
     Assert.That(graphviz.DotPath, Does.Exist);
 }