public void CanMockInternalInterface() { MockRepository mocks = new MockRepository(); IInternal mock = mocks.StrictMock <IInternal>(); mock.Foo(); mocks.ReplayAll(); mock.Foo(); mocks.VerifyAll(); }
public void CanMockInternalInterface() { IInternal mock = MockRepository.Mock <IInternal>(); mock.Expect(x => x.Foo()); mock.Foo(); mock.VerifyExpectations(); }
public void CanMockInternalInterface() { IInternal mock = MockRepository.Mock <IInternal>(); mock.SetUnexpectedBehavior(UnexpectedCallBehaviors.BaseOrDefault); mock.Expect(x => x.Foo()); mock.Foo(); mock.VerifyExpectations(); }