public void ShouldUseProxyCallbackValueOnMethodWithValueTypeReturnValue() { const int ReturnValue = 1234; TestInterface proxy = Proxifier.WithoutBaseClass(new FuncProxyAction((instance, method, args) => { return(1234); })) .WithInterfaces(typeof(TestInterface)) .Build <TestInterface>(); int result = proxy.MethodWithValueTypeReturnValue(); Assert.Equal(ReturnValue, result); }