Exemplo n.º 1
0
 public static void TestInvokeMethod_DefaultParameter_ReferenceTypeParameterWithExplicitValue()
 {
     DefaultParameters.CustomReferenceType referenceInstance = new DefaultParameters.CustomReferenceType();
     Assert.Same(
         referenceInstance,
         getMethod(typeof(DefaultParameters), "Reference").Invoke(new DefaultParameters(), new object[] { referenceInstance }));
 }
Exemplo n.º 2
0
 public static void TestInvokeMethod_DefaultParameter_ReferenceTypeParameterWithExplicitValue()
 {
     DefaultParameters.CustomReferenceType referenceInstance = new DefaultParameters.CustomReferenceType();
     Assert.Same(
         referenceInstance,
         getMethod(typeof(DefaultParameters), "Reference").Invoke(new DefaultParameters(), new object[] { referenceInstance }));
 }