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(); }