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); }
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); }