Example #1
0
 public void Test()
 {
     const string pre = @"<root><child /><child /></root>";
     const string post = pre;
     const string xpath = "//child";
     var task = new Count();
     Run(pre, post, xpath, task);
 }
Example #2
0
        public void InvalidXPath()
        {
            const string pre = @"<root><child/><child/></root>";
            const string xpath = "//";
            var task = new Count();

            Assert.Throws<TaskExecutionException>(() => Run(pre, null, xpath, task));
        }