Esempio n. 1
0
        public void an_interceptor_can_replace_the_original_invoke_call()
        {
            var emptyResult = new OutputMember[0];

            given_mock_operation(op => op.Expect(x => x.Invoke()).Throws <InvalidOperationException>());
            given_mock_interceptor(() => emptyResult);
            given_wrapper();

            invoking_wrapped_operation();

            InvokeResult.ShouldBeTheSameInstanceAs(emptyResult);
        }