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:
authorJeff Chen <59190910+JeffInChrist@users.noreply.github.com>2021-04-15 16:31:41 +0300
committerGitHub <noreply@github.com>2021-04-15 16:31:41 +0300
commitb65966eace83a9ffa5ba5bb5dc2a12754084bd29 (patch)
treeb68592dfebc6c5c6377551c5322e6f0f85bf0ce9 /mdoc/mdoc.Test/CppWinRtMembersTests.cs
parent11feb86f91652dab03d170a9bd8fd9c1d4ce6849 (diff)
Enabling Guid type projection for C++/WinRT and C++/CX. (#546)
https://dev.azure.com/ceapex/Engineering/_workitems/edit/344653
Diffstat (limited to 'mdoc/mdoc.Test/CppWinRtMembersTests.cs')
-rw-r--r--mdoc/mdoc.Test/CppWinRtMembersTests.cs19
1 files changed, 18 insertions, 1 deletions
diff --git a/mdoc/mdoc.Test/CppWinRtMembersTests.cs b/mdoc/mdoc.Test/CppWinRtMembersTests.cs
index d40e4d29..3a33e69a 100644
--- a/mdoc/mdoc.Test/CppWinRtMembersTests.cs
+++ b/mdoc/mdoc.Test/CppWinRtMembersTests.cs
@@ -1,4 +1,5 @@
-using Mono.Documentation.Updater.Formatters.CppFormatters;
+using mdoc.Test.SampleClasses;
+using Mono.Documentation.Updater.Formatters.CppFormatters;
using Mono_DocTest;
using NUnit.Framework;
using Cpp = Mono_DocTest_Generic;
@@ -40,6 +41,22 @@ namespace mdoc.Test
}
[Test]
+ public void CreateNewGuid()
+ {
+ var member = GetMethod(typeof(GuidClass), m => m.Name == "CreateNewGuid");
+ var sig = formatter.GetDeclaration(member);
+ Assert.AreEqual(@" static winrt::guid CreateNewGuid();", sig);
+ }
+
+ [Test]
+ public void ObjectIndentical()
+ {
+ var member = GetMethod(typeof(GuidClass), m => m.Name == "ObjectIndentical");
+ var sig = formatter.GetDeclaration(member);
+ Assert.AreEqual(@"bool ObjectIndentical(winrt::guid const& objGuid1, winrt::guid const& objGuid2);", sig);
+ }
+
+ [Test]
[Category("Method")]
public void Method_DefaultParameters()
{