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-30 22:23:09 +0300
committerGitHub <noreply@github.com>2021-04-30 22:23:09 +0300
commitb9158aa6bc4e958bbd243a0d4fbf109788c90e87 (patch)
tree800fca43c6d78a9915f398feadc74434466a82e1 /mdoc/mdoc.Test/CppCxFormatterMembersTests.cs
parentd3ce3cadd68a78fbb11efe02afb9c160e07391e4 (diff)
Adding the projection of Numerics types in C++/WinRT, C++/CX and fixed an issue of the cppType logic (#550)
https://dev.azure.com/ceapex/Engineering/_workitems/edit/100023
Diffstat (limited to 'mdoc/mdoc.Test/CppCxFormatterMembersTests.cs')
-rw-r--r--mdoc/mdoc.Test/CppCxFormatterMembersTests.cs20
1 files changed, 6 insertions, 14 deletions
diff --git a/mdoc/mdoc.Test/CppCxFormatterMembersTests.cs b/mdoc/mdoc.Test/CppCxFormatterMembersTests.cs
index 10b0378f..d9fe24cd 100644
--- a/mdoc/mdoc.Test/CppCxFormatterMembersTests.cs
+++ b/mdoc/mdoc.Test/CppCxFormatterMembersTests.cs
@@ -43,30 +43,22 @@ namespace mdoc.Test
Windows::Foundation::IAsyncActionWithProgress<double> ^ GetPrimesUnordered(int first, int last);");
}
- //[Test]
- //[Category("Method")]
- //public void Method_CreateNewGuid()
- //{
- // TestMethodSignature(CppCxTestLibName, "UwpTestWinRtComponentCpp.Class1", "CreateNewGuid",
- // @"public: Platform::Guid ^ CreateNewGuid();");
- //}
-
[Test]
- public void CreateNewGuid()
+ [Category("Method")]
+ public void Method_CreateNewGuid()
{
var member = GetMethod(typeof(GuidClass), m => m.Name == "CreateNewGuid");
var sig = formatter.GetDeclaration(member);
- Assert.AreEqual(@"public:
- static Platform::Guid CreateNewGuid();", sig);
+ Assert.AreEqual("public:\n static Platform::Guid CreateNewGuid();", sig);
}
[Test]
- public void ObjectIndentical()
+ [Category("Method")]
+ public void Method_ObjectIndentical()
{
var member = GetMethod(typeof(GuidClass), m => m.Name == "ObjectIndentical");
var sig = formatter.GetDeclaration(member);
- Assert.AreEqual(@"public:
- bool ObjectIndentical(Platform::Guid objGuid1, Platform::Guid objGuid2);", sig);
+ Assert.AreEqual("public:\n bool ObjectIndentical(Platform::Guid objGuid1, Platform::Guid objGuid2);", sig);
}
[Test]