Ejemplo n.º 1
0
        public void BeginCatchBlock()
        {
            var exceptionType        = ReflectionObjectMother.GetSomeType();
            var fakeEmittableOperand = ReflectionObjectMother.GetSomeOtherType();

            _emittableOperandProviderStub.Stub(stub => stub.GetEmittableType(exceptionType)).Return(fakeEmittableOperand);

            _innerILGeneratorMock.Expect(mock => mock.BeginCatchBlock(fakeEmittableOperand));

            _decorator.BeginCatchBlock(exceptionType);

            _innerILGeneratorMock.VerifyAllExpectations();
        }