Esempio n. 1
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]}");
 }
Esempio n. 2
0
 public void Should_support_setting_node_height()
 {
     var style = new DotNodeStyle();
     style.Height = 0.1;
     style.ToString().ShouldEqual("height=0.1");
 }
Esempio n. 3
0
 public void Should_support_setting_FontSize()
 {
     var style = new DotNodeStyle();
     style.FontSize = 8;
     style.ToString().ShouldEqual("fontsize=8");
 }
Esempio n. 4
0
 public void Should_support_box_shaped_nodes()
 {
     var style = new DotNodeStyle();
     style.Shape = NodeShape.Box;
     style.ToString().ShouldEqual("shape=box");
 }
Esempio n. 5
0
 public DotNode(int id)
 {
     this.id = id;
     Style = new DotNodeStyle();
 }