@@ -36,7 +36,7 @@ public string methodWithDefaultParameter(string s = "")
36
36
return s ;
37
37
}
38
38
39
- public string methodWithRequiredAndDefaultParameters ( int i , string s = "" , bool b = true )
39
+ public string methodWithRequiredAndDefaultParameters ( int i , string s = "abc " , bool b = true )
40
40
{
41
41
return String . Format ( "i: {0}, s: {1}, b: {2}" , i , s , b ) ;
42
42
}
@@ -258,7 +258,7 @@ public void MethodCallWithRequiredAndDefaultParameters_PassingNoOptionalActualPa
258
258
_context . SetParameter ( "obj" , obj ) ;
259
259
var result = _context . Run ( "obj.methodWithRequiredAndDefaultParameters(1)" ) ;
260
260
261
- result . Should ( ) . Be ( "i: 1, s: , b: True" ) ;
261
+ result . Should ( ) . Be ( "i: 1, s: abc , b: True" ) ;
262
262
}
263
263
264
264
[ TestMethod ]
@@ -270,5 +270,16 @@ public void MethodCallWithRequiredAndDefaultParameters_PassingAllActualParameter
270
270
271
271
result . Should ( ) . Be ( "i: 1, s: test, b: False" ) ;
272
272
}
273
+
274
+ [ TestMethod ]
275
+ [ Ignore ]
276
+ public void MethodCallWithRequiredAndDefaultParameters_PassingOnlyOneOptionalActualParameterLeavingTheMiddleOneUndefined ( )
277
+ {
278
+ var obj = new TypedPropertiesClass ( ) ;
279
+ _context . SetParameter ( "obj" , obj ) ;
280
+ var result = _context . Run ( "obj.methodWithRequiredAndDefaultParameters(1, undefined, false)" ) ;
281
+
282
+ result . Should ( ) . Be ( "i: 1, s: abc, b: False" ) ;
283
+ }
273
284
}
274
285
}
0 commit comments