4 using System.Collections.Generic;
10 namespace MonoTests.Monodoc
15 const string BaseDir = "../../class/monodoc/Test/monodoc_test/";
18 public void LegacyNodesTest_30 ()
20 TestLegacyNodesSameAsChildNodes ("tree-from-3-0.tree");
24 public void LegacyNodesTest_210 ()
26 TestLegacyNodesSameAsChildNodes ("tree-from-2-10.tree");
30 public void LegacyNodesTest_30old ()
32 TestLegacyNodesSameAsChildNodes ("tree-from-3-0-old.tree");
35 void TestLegacyNodesSameAsChildNodes (string treeFileName)
37 var filePath = Path.Combine (BaseDir, "trees", treeFileName);
38 var tree = new Tree (null, filePath);
39 CollectionAssert.AreEqual (tree.RootNode.ChildNodes, tree.RootNode.Nodes);