We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f7e4870 commit 424317fCopy full SHA for 424317f
2 files changed
src/testing/methodtest.cs
@@ -136,6 +136,21 @@ public static string TestOverloadedObjectTwo(int a, int b)
136
return "Got int-int";
137
}
138
139
+ public static string TestOverloadedObjectTwo(string a, string b)
140
+ {
141
+ return "Got string-string";
142
+ }
143
+
144
+ public static string TestOverloadedObjectTwo(string a, int b)
145
146
+ return "Got string-int";
147
148
149
+ public static string TestOverloadedObjectTwo(string a, object b)
150
151
+ return "Got string-object";
152
153
154
public static string TestOverloadedObjectTwo(int a, object b)
155
{
156
return "Got int-object";
src/tests/test_method.py
@@ -807,6 +807,15 @@ def test_object_in_multiparam():
807
res = MethodTest.TestOverloadedObjectTwo("foo", "bar")
808
assert res == "Got object-object"
809
810
+ res = MethodTest.TestOverloadedObjectTwo("foo", System.Object)
811
+ assert res == "Got string-object"
812
813
+ res = MethodTest.TestOverloadedObjectTwo("foo", "bar")
814
+ assert res == "Got string-string"
815
816
+ res = MethodTest.TestOverloadedObjectTwo("foo", 5)
817
+ assert res == "Got string-int"
818
819
820
def test_object_in_multiparam_exception():
821
"""Test method with object multiparams behaves"""
0 commit comments