[runtime] Disable some tests in full-aot mode which cannot be AOTed because of type...
[mono.git] / mcs / class / monodoc / Test / Monodoc / NodeTest.cs
1 using System;
2 using System.IO;
3 using System.Linq;
4 using System.Collections.Generic;
5
6 using NUnit.Framework;
7
8 using Monodoc;
9
10 namespace MonoTests.Monodoc
11 {
12         [TestFixture]
13         public class NodeTest
14         {
15                 const string BaseDir = "../../class/monodoc/Test/monodoc_test/";
16
17                 [Test]
18                 public void LegacyNodesTest_30 ()
19                 {
20                         TestLegacyNodesSameAsChildNodes ("tree-from-3-0.tree");
21                 }
22
23                 [Test]
24                 public void LegacyNodesTest_210 ()
25                 {
26                         TestLegacyNodesSameAsChildNodes ("tree-from-2-10.tree");
27                 }
28
29                 [Test]
30                 public void LegacyNodesTest_30old ()
31                 {
32                         TestLegacyNodesSameAsChildNodes ("tree-from-3-0-old.tree");
33                 }
34
35                 void TestLegacyNodesSameAsChildNodes (string treeFileName)
36                 {
37                         var filePath = Path.Combine (BaseDir, "trees", treeFileName);
38                         var tree = new Tree (null, filePath);
39                         CollectionAssert.AreEqual (tree.RootNode.ChildNodes, tree.RootNode.Nodes);
40                 }
41         }
42 }