diff options
author | RanhaoXu <v-jex@microsoft.com> | 2021-04-14 18:24:33 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-04-14 18:24:33 +0300 |
commit | 11feb86f91652dab03d170a9bd8fd9c1d4ce6849 (patch) | |
tree | 7d52b0e64c788be3d1cf699a3beff5c67abbbacf /mdoc/mdoc.Test/CppWinRtMembersTests.cs | |
parent | 806f222aad9a217efc587776915ffba95f92a20f (diff) |
Added missing const& for cpp/winrt syntax (#543)
https://dev.azure.com/ceapex/Engineering/_workitems/edit/86667
Diffstat (limited to 'mdoc/mdoc.Test/CppWinRtMembersTests.cs')
-rw-r--r-- | mdoc/mdoc.Test/CppWinRtMembersTests.cs | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/mdoc/mdoc.Test/CppWinRtMembersTests.cs b/mdoc/mdoc.Test/CppWinRtMembersTests.cs index 000f7565..d40e4d29 100644 --- a/mdoc/mdoc.Test/CppWinRtMembersTests.cs +++ b/mdoc/mdoc.Test/CppWinRtMembersTests.cs @@ -19,7 +19,7 @@ namespace mdoc.Test public void Method_ComputeResult() { TestMethodSignature(CppCxTestLibName, "UwpTestWinRtComponentCpp.Class1", "ComputeResult", - @"winrt::Windows::Foundation::Collections::IVector<double> ComputeResult(double input);"); + @"winrt::Windows::Foundation::Collections::IVector<double> ComputeResult(double const& input);"); } [Test] @@ -27,7 +27,7 @@ namespace mdoc.Test public void Method_GetPrimesOrdered() { TestMethodSignature(CppCxTestLibName, "UwpTestWinRtComponentCpp.Class1", "GetPrimesOrdered", - @"winrt::Windows::Foundation::IAsyncOperationWithProgress<winrt::Windows::Foundation::Collections::IVector<int>, double> GetPrimesOrdered(int first, int last);"); + @"winrt::Windows::Foundation::IAsyncOperationWithProgress<winrt::Windows::Foundation::Collections::IVector<int>, double> GetPrimesOrdered(int const& first, int const& last);"); } @@ -36,7 +36,7 @@ namespace mdoc.Test public void Method_GetPrimesUnordered() { TestMethodSignature(CppCxTestLibName, "UwpTestWinRtComponentCpp.Class1", "GetPrimesUnordered", - @"winrt::Windows::Foundation::IAsyncActionWithProgress<double> GetPrimesUnordered(int first, int last);"); + @"winrt::Windows::Foundation::IAsyncActionWithProgress<double> GetPrimesUnordered(int const& first, int const& last);"); } [Test] @@ -44,7 +44,7 @@ namespace mdoc.Test public void Method_DefaultParameters() { TestMethodSignature(CSharpTestLib, "Mono.DocTest.Widget", "Default", - @"void Default(int a = 1, int b = 2);"); + @"void Default(int const& a = 1, int const& b = 2);"); } [Test] @@ -52,7 +52,7 @@ namespace mdoc.Test public void Method_RefType() { TestMethodSignature(CppCxTestLibName, "Namespace222.App", "SetWindow1", - @"void SetWindow1(winrt::Windows::UI::Core::CoreWindow const & window);"); + @"void SetWindow1(winrt::Windows::UI::Core::CoreWindow const& window);"); } [Test] @@ -60,7 +60,7 @@ namespace mdoc.Test public void Method_WinRtTypeInterfaceImplementation() { TestMethodSignature(CppCxTestLibName, "Namespace222.App", "SetWindow", - @"void SetWindow(winrt::Windows::UI::Core::CoreWindow const & window);"); + @"void SetWindow(winrt::Windows::UI::Core::CoreWindow const& window);"); } [Test] |