예제 #1
0
        public void Should_support_setting_PenSize()
        {
            var style = new DotEdgeStyle();
            style.PenWidth = 0.75;

            style.ToString().ShouldEqual("penwidth=0.75");
        }
예제 #2
0
        public void Should_support_setting_ArrowSize()
        {
            var style = new DotEdgeStyle();
            style.ArrowSize = 0.7;

            style.ToString().ShouldEqual("arrowsize=0.7");
        }
예제 #3
0
        public void Should_support_setting_Color()
        {
            var style = new DotEdgeStyle();
            style.Color = Color.FromArgb(0x30, 0x30, 0x30);

            style.ToString().ShouldEqual("color=\"#303030\"");
        }
예제 #4
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]}");
 }