public void KeyValueNode_returns_root_node(KeyValueNode <string, int> root) { // ACT var result = root.DescendantAt(HierarchyPath.Create <string>()); // ASSERT Assert.Same(root, result); }
public void KeyValueNode_returns_grandchildnodes(KeyValueNode <string, int> root) { // ACT var result = root.DescendantAt(HierarchyPath.Create("leftNode", "leftLeaf")); // ASSERT Assert.Same("leftLeaf", result.Key); }