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:
authorJoel Martinez <joelmartinez@gmail.com>2019-12-04 01:07:41 +0300
committerJoel Martinez <joelmartinez@gmail.com>2019-12-04 01:07:41 +0300
commit099a1d7552b5c8b7be1ff20b10ab950a27566927 (patch)
tree2bdea324eb8d2249c30ac14e3188e8781a67e01a /mdoc/mdoc.Test/CppWinRtMembersTests.cs
parent37d73b374d31eebd14436f65df0ce03cec0030e6 (diff)
winrt: implemented events support for uwp
Diffstat (limited to 'mdoc/mdoc.Test/CppWinRtMembersTests.cs')
-rw-r--r--mdoc/mdoc.Test/CppWinRtMembersTests.cs20
1 files changed, 14 insertions, 6 deletions
diff --git a/mdoc/mdoc.Test/CppWinRtMembersTests.cs b/mdoc/mdoc.Test/CppWinRtMembersTests.cs
index c5acfd26..5022b103 100644
--- a/mdoc/mdoc.Test/CppWinRtMembersTests.cs
+++ b/mdoc/mdoc.Test/CppWinRtMembersTests.cs
@@ -79,19 +79,27 @@ namespace mdoc.Test
- #region NoSupport
[Test]
- [Category("NoSupport")]
- public void NoSupport_Property()
+ [Category("Event")]
+ public void Event_Class1_primeFoundEvent()
{
- TestPropertySignature(CppCxTestLibName, "Namespace2.Class3", "LongProperty", null);
+ var expectedSig = @"// Register
+event_token primeFoundEvent(UwpTestWinRtComponentCpp::PrimeFoundHandler const& handler) const;
+
+// Revoke with event_token
+void primeFoundEvent(event_token const* cookie) const;
+
+// Revoke with event_revoker
+primeFoundEvent_revoker primeFoundEvent(auto_revoke_t, UwpTestWinRtComponentCpp::PrimeFoundHandler const& handler) const;";
+ TestEventSignature(CppCxTestLibName, "UwpTestWinRtComponentCpp.Class1", "primeFoundEvent", expectedSig);
}
+ #region NoSupport
[Test]
[Category("NoSupport")]
- public void NoSupport_Event()
+ public void NoSupport_Property()
{
- TestEventSignature(CppCxTestLibName, "UwpTestWinRtComponentCpp.Class1", "primeFoundEvent", null);
+ TestPropertySignature(CppCxTestLibName, "Namespace2.Class3", "LongProperty", null);
}
[Test]