//[Test] public void TestMethodWhereAMockIsInvokedWithStub() { _barMock.Stub(x => x.DoSomethingBarRelated()).Return(1); // We want to see how the CIL is generated when there are two stubs. _barStub.Stub(x => x.DoSomethingBarRelated()).Return(2); }
protected override void Given() { barMock = MockRepository.GenerateMock <IBar>(); fuzzMock = MockRepository.GenerateMock <IFuzz>(); UnderTest = new Foo(barMock, fuzzMock); barMock.Stub(x => x.BarFunction()).Return(1); }