public void ShouldWireCallbackOnMethodWithArgs() { bool proxyCalled = false; Object[] proxyArgs = null; TestInterface proxy = Proxifier.WithoutBaseClass(new FuncProxyAction((instance, method, args) => { proxyCalled = true; proxyArgs = args; return(null); })) .WithInterfaces(typeof(TestInterface)) .Build <TestInterface>(); proxy.MethodWithArgs(100, "Proxy method test"); Assert.True(proxyCalled, "The proxy callback was not invoked"); Assert.Equal(new object[] { 100, "Proxy method test" }, proxyArgs); }