public void ShouldUseProxyCallbackValueOnMethodWithReferenceTypeReturnValue() { const string ReturnValue = "Test string"; TestInterface proxy = Proxifier.WithoutBaseClass(new FuncProxyAction((instance, method, args) => { return(ReturnValue); })) .WithInterfaces(typeof(TestInterface)) .Build <TestInterface>(); String result = proxy.MethodWithReferenceTypeReturnValue(); Assert.Equal(ReturnValue, result); }