public void Should_support_setting_PenSize() { var style = new DotEdgeStyle(); style.PenWidth = 0.75; style.ToString().ShouldEqual("penwidth=0.75"); }
public void Should_support_setting_ArrowSize() { var style = new DotEdgeStyle(); style.ArrowSize = 0.7; style.ToString().ShouldEqual("arrowsize=0.7"); }
public void Should_support_setting_Color() { var style = new DotEdgeStyle(); style.Color = Color.FromArgb(0x30, 0x30, 0x30); style.ToString().ShouldEqual("color=\"#303030\""); }
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]}"); }