AppHarbor.TransformTester.Transforms.MergeBefore.Apply C# (CSharp) Method

Apply() protected method

protected Apply ( ) : void
return void
        protected override void Apply()
        {
            Apply((XmlElement)TargetNode, (XmlElement)TransformNode, Arguments);
        }

Same methods

MergeBefore::Apply ( XmlElement targetElement, XmlElement transformElement, IList arguments ) : void

Usage Example

        public void Apply_ShouldMergeTop(string targetXml, string transformXml, string expectedXml, IList<string> arguments)
        {
            var targetDocument = ArrangeTargetDocument(targetXml);
            var transformElement = ArrangeTransformElement(targetDocument, transformXml);

            var merge = new MergeBefore();
            merge.Apply(targetDocument.DocumentElement, transformElement, arguments);

            Assert.Equal(expectedXml, targetDocument.OuterXml);
        }