Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/api-doc-tools.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGRODNO\Anton_Sokolovskii <a.sokolovsky15@gmail.com>2018-06-12 16:20:47 +0300
committerGRODNO\Anton_Sokolovskii <a.sokolovsky15@gmail.com>2018-07-05 11:16:32 +0300
commit31314481ba3640c15420498c712a733f5b7efe61 (patch)
tree5a50688f48a219b4f8058fd7bc5c2651d86e81cc /mdoc/mdoc.Test/MDocUpdaterTests.cs
parent700b97c845aacc98f5b277695b027f184b24110d (diff)
mdoc: Incorrect signatures generated for return types
Removed namespace when return type is generic Added integration tests Added unit test Add RefType attribute to ReturnType element Closes #230
Diffstat (limited to 'mdoc/mdoc.Test/MDocUpdaterTests.cs')
-rw-r--r--mdoc/mdoc.Test/MDocUpdaterTests.cs12
1 files changed, 12 insertions, 0 deletions
diff --git a/mdoc/mdoc.Test/MDocUpdaterTests.cs b/mdoc/mdoc.Test/MDocUpdaterTests.cs
index 5074f32a..e6772c9f 100644
--- a/mdoc/mdoc.Test/MDocUpdaterTests.cs
+++ b/mdoc/mdoc.Test/MDocUpdaterTests.cs
@@ -1,8 +1,11 @@
using System.Collections.Generic;
+using System.Linq;
+using mdoc.Test.SampleClasses;
using Mono.Cecil;
using Mono.Cecil.Rocks;
using Mono.Collections.Generic;
using Mono.Documentation;
+using Mono.Documentation.Updater;
using NUnit.Framework;
using Cpp = Mono_DocTest_Generic;
@@ -34,5 +37,14 @@ namespace mdoc.Test
Assert.AreEqual("Mono_DocTest_Generic.GenericBase<U>", parameterType);
}
+ [Test]
+ public void Test_GetNamespace_IgnoredNamespaceGeneric()
+ {
+ TypeDefinition testType = GetType(typeof(ReadOnlySpan<>).Module.FullyQualifiedName, "mdoc.Test.SampleClasses.ReadOnlySpan`1");
+ var ns = DocUtils.GetNamespace(testType.GenericParameters.First());
+ Assert.AreEqual("", ns);
+ }
+
+
}
} \ No newline at end of file