Пример #1
0
 public void Split_overrideEquals()
 {
     string path = "pair[path/to/@Key={0}]/Items/Item[Name={1}]/Date";
     object[] values = new object[] { 2, "Martin" };
     XPathString target = new XPathString(path, values);
     XPathString[] expected = new[]{
         new XPathString("pair[path/to/@Key={0}]", 2),
         new XPathString("Items"),
         new XPathString("Item[Name={0}]", "Martin"),
         new XPathString("Date")
     };
     XPathString[] actual;
     actual = target.Split();
     CollectionAssert.AreEqual(expected, actual);
 }