コード例 #1
0
 public override void VisitShapeEnd(ShapeProxy shape)
 {
     this.builder.AppendLine("</Shape>");
 }
コード例 #2
0
        public override void VisitShapeStart(ShapeProxy shape)
        {
            this.builder
                    .AppendFormat("<Shape {0}>", FormatAttributes(new NamedValue("Name", shape.Name)))
                    .AppendLine();

            if (this.displayOptions.IncludeImages)
            {
                this.builder
                    .AppendFormat("<Image>{0}</Image>", shape.Image);
            }
        }
コード例 #3
0
 public ShapeProxyFacts()
 {
     this.testee = new ShapeProxy(ShapeName);
 }