Example #1
0
        public void GenerateDotCommand()
        {
            var graph = new DependencyGraph <string>();

            graph.AddDependency("A", "B");

            var filterPreferences = new AssemblyFilterPreferences();

            filterPreferences.SetAssemblyNames(graph.Nodes);
            var command = DotCommandBuilder.Generate(graph, filterPreferences);

            const string expected = @"digraph G {
    1 -> 2;
    1 [label=""A""];
    2 [label=""B""];
}";

            Assert.AreEqual(expected, command);
        }