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