Example #1
0
 public void Should_support_FontColor()
 {
     var node = new DotNode(0);
     node.Label = "ColoredText";
     node.Style.FontColor = Color.FromArgb(0, 255, 0);
     node.ToString().ShouldEqual("0[label=\"ColoredText\" fontcolor=\"#00FF00\"]");
 }
Example #2
0
 public Node Create()
 {
     var node = new DotNode(nextNodeId++);
     var tmp = NodeCreated;
     if(tmp != null)
         tmp(this, new NodeCreatedEventArgs<DotNode>(node));
     return node;
 }
Example #3
0
        public void Should_support_FillColor()
        {
            var node = new DotNode(0);
            node.Label = "PinkNode";
            node.Style.FillColor = Color.FromArgb(0xFF, 0x0F, 0xBE);

            node.ToString().ShouldEqual("0[label=\"PinkNode\" style=filled fillcolor=\"#FF0FBE\"]");
        }
Example #4
0
        public void Should_support_BorderColor()
        {
            var node = new DotNode(0);
            node.Label = "NodeWithBorder";
            node.Style.BorderColor = Color.FromArgb(0xFF, 0xA0, 0xE0);

            node.ToString().ShouldEqual("0[label=\"NodeWithBorder\" color=\"#FFA0E0\"]");
        }