diff --git a/tests/dotnet/CSharp/CSharp.Tests.cs b/tests/dotnet/CSharp/CSharp.Tests.cs index 1f3a64c26..b44b59525 100644 --- a/tests/dotnet/CSharp/CSharp.Tests.cs +++ b/tests/dotnet/CSharp/CSharp.Tests.cs @@ -1999,7 +1999,8 @@ public void TestPointerToClass() [Test] public void TestValueTypeOutParameter() { - CSharp.CSharp.ValueTypeOutParameter(out var unionTest); - Assert.AreEqual(2, unionTest.A); + CSharp.CSharp.ValueTypeOutParameter(out var unionTestA, out var unionTestB); + Assert.AreEqual(2, unionTestA.A); + Assert.AreEqual(2, unionTestB.B); } } diff --git a/tests/dotnet/CSharp/CSharp.cpp b/tests/dotnet/CSharp/CSharp.cpp index 96144f941..fc909ee5d 100644 --- a/tests/dotnet/CSharp/CSharp.cpp +++ b/tests/dotnet/CSharp/CSharp.cpp @@ -1792,7 +1792,8 @@ bool PointerTester::IsValid() PointerTester* PointerToClass = &internalPointerTesterInstance; -void ValueTypeOutParameter(UnionTester* tester) +void ValueTypeOutParameter(UnionTester* testerA, UnionTester* testerB) { - tester->a = 2; + testerA->a = 2; + testerB->b = 2; } diff --git a/tests/dotnet/CSharp/CSharp.h b/tests/dotnet/CSharp/CSharp.h index 68154b719..9d4e669b3 100644 --- a/tests/dotnet/CSharp/CSharp.h +++ b/tests/dotnet/CSharp/CSharp.h @@ -1609,4 +1609,4 @@ union DLL_API UnionTester { int b; }; -void DLL_API ValueTypeOutParameter(CS_OUT UnionTester* tester); +void DLL_API ValueTypeOutParameter(CS_OUT UnionTester* testerA, CS_OUT UnionTester* testerB);