C#: Add (U)IntPtr parameter default test cases.

This commit is contained in:
Michael Nebel
2023-12-05 15:07:50 +01:00
parent 71d09b75fb
commit 9390b48228
3 changed files with 6 additions and 2 deletions

View File

@@ -27,6 +27,8 @@ public class Parameters
public void M19([Optional, DecimalConstant(1, 0, 0, 0, 103)] decimal arg9) => throw null;
public void M20([Optional, DefaultParameterValue(7)] MyStruct arg10) => throw null;
public void M21([Optional, DefaultParameterValue("mystring")] MyStruct arg10) => throw null;
public void M22(nuint arg11 = 0) => throw null;
public void M23(nint arg12 = 0) => throw null;
public struct MyStruct
{
@@ -35,4 +37,4 @@ public class Parameters
}
public enum MyEnum { A = 1, B = 2 }
}
}

View File

@@ -27,6 +27,8 @@ public class ParametersDll
public void M19([Optional, DecimalConstant(1, 0, 0, 0, 103)] decimal arg9) => throw null;
public void M20([Optional, DefaultParameterValue(7)] MyStruct arg10) => throw null;
public void M21([Optional, DefaultParameterValue("mystring")] MyStruct arg10) => throw null;
public void M22(nuint arg11 = 0) => throw null;
public void M23(nint arg12 = 0) => throw null;
public struct MyStruct
{
@@ -35,4 +37,4 @@ public class ParametersDll
}
public enum MyEnum { A = 1, B = 2 }
}
}