diff options
author | Jérémie Laval <jeremie.laval@gmail.com> | 2013-03-23 18:58:01 +0400 |
---|---|---|
committer | Jérémie Laval <jeremie.laval@gmail.com> | 2013-03-23 18:58:01 +0400 |
commit | 75faf4d8974e385d1260fd80df68bf49cbda7cfb (patch) | |
tree | 179d16dafd005c4d6392c82f46df5ab22dc48590 /mcs | |
parent | e2b584c2af30cfdb03a9d108b24cb48d315420db (diff) |
[monodoc] Add reachability unit test for ASP.NET style URLs
Diffstat (limited to 'mcs')
-rw-r--r-- | mcs/class/monodoc/Test/Monodoc/HelpSourceTests.cs | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/mcs/class/monodoc/Test/Monodoc/HelpSourceTests.cs b/mcs/class/monodoc/Test/Monodoc/HelpSourceTests.cs index 0dd7b2ccc1f..eabea973634 100644 --- a/mcs/class/monodoc/Test/Monodoc/HelpSourceTests.cs +++ b/mcs/class/monodoc/Test/Monodoc/HelpSourceTests.cs @@ -6,6 +6,9 @@ using System.Collections.Generic; using NUnit.Framework; using Monodoc; +using Monodoc.Generators; + +using HtmlAgilityPack; namespace MonoTests.Monodoc { @@ -111,5 +114,20 @@ namespace MonoTests.Monodoc Assert.IsTrue (rootTree.RenderUrl ("T:System.Collections.Generic.Dictionary`2", generator, out result), "#2"); Assert.IsTrue (rootTree.RenderUrl ("T:System.Action`4", generator, out result), "#3"); } + + [Test] + public void AspNetStyleUrlReachabilityTest () + { + var rootTree = RootTree.LoadTree (Path.GetFullPath (BaseDir), false); + Node result; + var generator = new CheckGenerator (); + + Assert.IsTrue (rootTree.RenderUrl ("T:System.Collections.Generic.Dictionary{TKey,TValue}", generator, out result), "#1"); + Assert.IsTrue (rootTree.RenderUrl ("T:System.Action{T1,T2}", generator, out result), "#2"); + Assert.IsTrue (rootTree.RenderUrl ("T:System.EventHandler{TEventArgs}", generator, out result), "#3"); + Assert.IsTrue (rootTree.RenderUrl ("T:System.Func{T1,T2,T3,TResult}", generator, out result), "#4"); + Assert.IsTrue (rootTree.RenderUrl ("T:System.Collections.Generic.Dictionary{TKey,TValue}+ValueCollection", generator, out result), "#5"); + Assert.IsTrue (rootTree.RenderUrl ("T:System.IComparable{T}", generator, out result), "#6"); + } } } |