a575963da9
Former-commit-id: da6be194a6b1221998fc28233f2503bd61dd9d14
43 lines
870 B
C#
43 lines
870 B
C#
using System;
|
|
using System.IO;
|
|
using System.Linq;
|
|
using System.Collections.Generic;
|
|
|
|
using NUnit.Framework;
|
|
|
|
using Monodoc;
|
|
|
|
namespace MonoTests.Monodoc
|
|
{
|
|
[TestFixture]
|
|
public class NodeTest
|
|
{
|
|
const string BaseDir = "../../class/monodoc/Test/monodoc_test/";
|
|
|
|
[Test]
|
|
public void LegacyNodesTest_30 ()
|
|
{
|
|
TestLegacyNodesSameAsChildNodes ("tree-from-3-0.tree");
|
|
}
|
|
|
|
[Test]
|
|
public void LegacyNodesTest_210 ()
|
|
{
|
|
TestLegacyNodesSameAsChildNodes ("tree-from-2-10.tree");
|
|
}
|
|
|
|
[Test]
|
|
public void LegacyNodesTest_30old ()
|
|
{
|
|
TestLegacyNodesSameAsChildNodes ("tree-from-3-0-old.tree");
|
|
}
|
|
|
|
void TestLegacyNodesSameAsChildNodes (string treeFileName)
|
|
{
|
|
var filePath = Path.Combine (BaseDir, "trees", treeFileName);
|
|
var tree = new Tree (null, filePath);
|
|
CollectionAssert.AreEqual (tree.RootNode.ChildNodes, tree.RootNode.Nodes);
|
|
}
|
|
}
|
|
}
|