Exemplo n.º 1
0
        public void ProcessReplacesFormattedTagInTheElement()
        {
            Shape s = new Shape(Resources.TestShapeWithTag);
            ShapeElementProcessor processor = new ShapeElementProcessor();
            ShapeElement          element   = ShapeElement.Create("customer", s, null);

            element.Data = Helpers.CreateSingleValueElement("customer", "IBM");
            processor.Process(element);
            Assert.AreEqual("Business profile, IBM, 2014", s.InnerText);
        }
Exemplo n.º 2
0
        public void ProcessReplacesWholeShapeContent()
        {
            Shape s = new Shape(Resources.TestShape);
            ShapeElementProcessor processor = new ShapeElementProcessor();
            ShapeElement          element   = ShapeElement.Create("customer", s, null);

            element.Data = Helpers.CreateSingleValueElement("customer", "IBM");
            processor.Process(element);
            Assert.AreEqual("IBM", s.InnerText);
        }