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