public void VerifyMethodCallsOnProxyAreForwardedToStub() { Assert.AreEqual(0, _fooStub.NumberOfFooCalls); var proxyDispatchStub = new ProxyDispatchStub<IFoo>(_fooStub); var fooProxy = ProxyFactory.CreateProxy<IFoo>(proxyDispatchStub); fooProxy.Foo(); Assert.AreEqual(1, _fooStub.NumberOfFooCalls); }
public void VerifyMethodCallsOnProxyAreForwardedToStub() { Assert.AreEqual(0, _fooStub.NumberOfFooCalls); var proxyDispatchStub = new ProxyDispatchStub <IFoo>(_fooStub); var fooProxy = ProxyFactory.CreateProxy <IFoo>(proxyDispatchStub); fooProxy.Foo(); Assert.AreEqual(1, _fooStub.NumberOfFooCalls); }