Exemplo n.º 1
0
 public void Should_support_setting_EdgeStyle()
 {
     var dot = new DotBuilder(new StringWriter());
     var style = new DotEdgeStyle();
     style.ArrowSize = 0.1;
     dot.EdgeStyle = style;
     WriteEmpty(dot).ShouldEqual("digraph{edge[arrowsize=0.1]}");
 }
Exemplo n.º 2
0
 public void Should_support_setting_NodeStyle()
 {
     var dot = new DotBuilder(new StringWriter());
     var style = new DotNodeStyle();
     style.Height = 0.1;
     dot.NodeStyle = style;
     WriteEmpty(dot).ShouldEqual("digraph{node[height=0.1]}");
 }
Exemplo n.º 3
0
 public void Should_support_setting_RankSeparation()
 {
     var dot = new DotBuilder(new StringWriter());
     dot.RankSeparation = 0.12;
     WriteEmpty(dot).ShouldEqual("digraph{ranksep=0.12}");
 }
Exemplo n.º 4
0
 public void Should_support_setting_RankDirection()
 {
     var dot = new DotBuilder(new StringWriter());
     dot.RankDirection = RankDirection.LeftRight;
     WriteEmpty(dot).ShouldEqual("digraph{rankdir=LR}");
 }
Exemplo n.º 5
0
 static string WriteEmpty(DotBuilder dot)
 {
     return dot.Write(EmptyGraph()).Target.ToString();
 }