From ae53af25c21aeceb8eba413b1fdb4f7b752b8990 Mon Sep 17 00:00:00 2001 From: Salvage <29021710+Saalvage@users.noreply.github.com> Date: Wed, 18 Oct 2023 04:58:38 +0200 Subject: [PATCH] More stringent test; Fix indentation (of the code itself, not in the generator) --- tests/dotnet/CSharp/CSharp.Tests.cs | 5 +++-- tests/dotnet/CSharp/CSharp.cpp | 5 +++-- tests/dotnet/CSharp/CSharp.h | 2 +- 3 files changed, 7 insertions(+), 5 deletions(-) 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);