Skip to content

Commit

Permalink
C#: Add Many arguments test (#795)
Browse files Browse the repository at this point in the history
* add c# ManyArguments
  • Loading branch information
yowl authored Jan 2, 2024
1 parent 104a2c0 commit b30254f
Showing 1 changed file with 62 additions and 0 deletions.
62 changes: 62 additions & 0 deletions tests/runtime/many_arguments/wasm.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,62 @@
using System.Diagnostics;
using wit_many_arguments.wit.imports.Imports;

namespace wit_many_arguments;

public class ManyArgumentsWorldImpl : IManyArgumentsWorld
{
public static void ManyArguments(
ulong a1,
ulong a2,
ulong a3,
ulong a4,
ulong a5,
ulong a6,
ulong a7,
ulong a8,
ulong a9,
ulong a10,
ulong a11,
ulong a12,
ulong a13,
ulong a14,
ulong a15,
ulong a16)
{
Debug.Assert(a1 == 1);
Debug.Assert(a2 == 2);
Debug.Assert(a3 == 3);
Debug.Assert(a4 == 4);
Debug.Assert(a5 == 5);
Debug.Assert(a6 == 6);
Debug.Assert(a7 == 7);
Debug.Assert(a8 == 8);
Debug.Assert(a9 == 9);
Debug.Assert(a10 == 10);
Debug.Assert(a11 == 11);
Debug.Assert(a12 == 12);
Debug.Assert(a13 == 13);
Debug.Assert(a14 == 14);
Debug.Assert(a15 == 15);
Debug.Assert(a16 == 16);

ImportsInterop.ManyArguments(
a1,
a2,
a3,
a4,
a5,
a6,
a7,
a8,
a9,
a10,
a11,
a12,
a13,
a14,
a15,
a16
);
}
}

0 comments on commit b30254f

Please sign in to comment.