예제 #1
0
        public void CanMockInternalInterface()
        {
            IInternal mock = MockRepository.Mock <IInternal>();

            mock.Expect(x => x.Foo());

            mock.Foo();
            mock.VerifyExpectations();
        }
예제 #2
0
        public void CanMockInternalInterface()
        {
            IInternal mock = MockRepository.Mock <IInternal>();

            mock.SetUnexpectedBehavior(UnexpectedCallBehaviors.BaseOrDefault);
            mock.Expect(x => x.Foo());

            mock.Foo();
            mock.VerifyExpectations();
        }