Example #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]}");
 }
Example #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]}");
 }
Example #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}");
 }
Example #4
0
 public void Should_support_setting_RankDirection()
 {
     var dot = new DotBuilder(new StringWriter());
     dot.RankDirection = RankDirection.LeftRight;
     WriteEmpty(dot).ShouldEqual("digraph{rankdir=LR}");
 }
Example #5
0
 static string WriteEmpty(DotBuilder dot)
 {
     return dot.Write(EmptyGraph()).Target.ToString();
 }