public void FindValues_WithThreePartPath_ShouldReturnAttributeValue()
 {
     var target = new Document();
     object expected = new Tuple<string,object>("foo/bar/quux","baz");
     target.GetSubDocument("foo").GetSubDocument("bar").SetAttribute("quux", "baz");
     var actual = target.FindValues("foo/bar/quux").Single();
     Assert.AreEqual(expected, actual, "GetAttributeReturnedDifferentValueFromSet");
 }
 public void FindValues_WithTwoPartPath_ShouldReturnSubDocumentAttributeValue()
 {
     var target = new Document();
     const string value = "bar";
     object expected = new Tuple<string,object>("foo/foo","bar");
     target.GetSubDocument("foo").SetAttribute("foo", value);
     var actual = target.FindValues("foo/foo").Single();
     Assert.AreEqual(expected, actual, "GetAttributeReturnedDifferentValueFromSet");
 }
 public void SetSubDocumentTest()
 {
     var target = new Document();
     const string name = "foo";
     var document = new Document();
     target.SetSubDocument(name, document);
     Assert.AreEqual(document, target.GetSubDocument(name));
 }
 public void GetSubDocumentTest()
 {
     var target = new Document();
     const string name = "foo";
     var actual = target.GetSubDocument(name);
     Assert.IsNotNull(actual);
 }