Exemplo n.º 1
0
        public void CanMockInternalInterface()
        {
            IInternal mock = MockRepository.Mock <IInternal>();

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

            mock.Foo();
            mock.VerifyExpectations();
        }
Exemplo n.º 2
0
        public void CanMockInternalInterface()
        {
            IInternal mock = MockRepository.Mock <IInternal>();

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

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