public void GraphvizTest()
        {
            // When
            byte[] output = wrapper.GenerateGraphDirectly("digraph{a -> b; b -> c; c -> a;}", Enums.GraphReturnType.Png);

            // Then
            Assert.IsTrue(output.Length > 0);
        }
Esempio n. 2
0
            private BitmapImage MakeBitmapImage(GraphGeneration graphGeneration)
            {
                try
                {
                    byte[] output;
                    if (Util.StringUtil.ContainsUnicodeCharacter(m_dotGraph))
                    {
                        output = graphGeneration.GenerateGraphViaFile(m_dotGraph, Enums.GraphReturnType.Png);
                    }
                    else
                    {
                        output = graphGeneration.GenerateGraphDirectly(m_dotGraph, Enums.GraphReturnType.Png);
                    }

                    return(Util.Util.BitmapImageFromImage(output));
                }
                catch
                {
                    return(null);
                }
            }