public void BuildNodesCanBuildFlatNodeStructure() { string testData = "<data>hello</data>" + "<data1>world</data1>"; Node node = _xmlParser.BuildNodeStructure(TagNames.Root, testData); Assert.AreEqual(2, node.Children.Count); Assert.AreEqual("data", node.Children[0].Name); Assert.AreEqual("hello", node.Children[0].Value); Assert.AreEqual("data1", node.Children[1].Name); Assert.AreEqual("world", node.Children[1].Value); }