public void InvokeStaticMethodPreservesException() { var method = MethodReference.Get(() => StaticMethod(null)); method.InvokeUnwrapped(null, new object[] { "kebas" }); }
public void InvokeInstanceMethodPreservesException() { var method = MethodReference.Get(() => InstanceMethod(null)); method.InvokeUnwrapped(this, new object[] { "kebas" }); }