public void ExtensionMethodWithVarArgs() { var o = new Foo(); var value = Dispatch(o, "ExtensionEchoVar", 1, "skip", "Hello"); Assert.AreEqual(FooExtensions.ExtensionEchoVar(o, 1, "skip", "Hello"), value); }
public void ExtensionMethod() { Foo o = new Foo(); object value = Dispatch(o, "ExtensionEcho", "Hello"); Assert.AreEqual(FooExtensions.ExtensionEcho(o, "Hello"), value); }