You've already forked linux-packaging-mono
Imported Upstream version 5.4.0.167
Former-commit-id: 5624ac747d633e885131e8349322922b6a59baaa
This commit is contained in:
parent
e49d6f06c0
commit
536cd135cc
42
external/api-doc-tools/monodoc/Test/Monodoc/NodeTest.cs
vendored
Normal file
42
external/api-doc-tools/monodoc/Test/Monodoc/NodeTest.cs
vendored
Normal file
@ -0,0 +1,42 @@
|
||||
using System;
|
||||
using System.IO;
|
||||
using System.Linq;
|
||||
using System.Collections.Generic;
|
||||
using System.Runtime.CompilerServices;
|
||||
|
||||
using NUnit.Framework;
|
||||
|
||||
using Monodoc;
|
||||
|
||||
namespace MonoTests.Monodoc
|
||||
{
|
||||
[TestFixture]
|
||||
public class NodeTest
|
||||
{
|
||||
[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, [CallerFilePath] string baseDir = "")
|
||||
{
|
||||
var filePath = Path.Combine (Path.GetDirectoryName (baseDir), "..", "monodoc_test", "trees", treeFileName);
|
||||
|
||||
var tree = new Tree (null, filePath);
|
||||
CollectionAssert.AreEqual (tree.RootNode.ChildNodes, tree.RootNode.Nodes);
|
||||
}
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user