You've already forked linux-packaging-mono
Imported Upstream version 5.2.0.196
Former-commit-id: a9bb725ccbe0b8bfe8370b968c9f33f1558e1a2b
This commit is contained in:
parent
fad71374d0
commit
bdb6e93184
@ -1,44 +0,0 @@
|
||||
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 TreeTest
|
||||
{
|
||||
[Test]
|
||||
public void TestLoadingTree_2_10 ()
|
||||
{
|
||||
TestTreeLoading ("tree-from-2-10.tree", 0, 2);
|
||||
}
|
||||
|
||||
[Test]
|
||||
public void TestLoadingTree_3_0_old ()
|
||||
{
|
||||
TestTreeLoading ("tree-from-3-0-old.tree", 1, 2);
|
||||
}
|
||||
|
||||
[Test]
|
||||
public void TestLoadingTree_3_0 ()
|
||||
{
|
||||
TestTreeLoading ("tree-from-3-0.tree", 1, 2);
|
||||
}
|
||||
|
||||
void TestTreeLoading (string treeFileName, int expectedVersion, int expectedNodeCount, [CallerFilePath] string baseDir = "")
|
||||
{
|
||||
var filePath = Path.Combine (Path.GetDirectoryName (baseDir), "..", "monodoc_test", "trees", treeFileName);
|
||||
|
||||
var tree = new Tree (null, filePath);
|
||||
Assert.AreEqual (expectedVersion, tree.VersionNumber);
|
||||
Assert.IsNotNull (tree.RootNode);
|
||||
Assert.AreEqual (expectedNodeCount, tree.RootNode.ChildNodes.Count);
|
||||
}
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user