コード例 #1
0
        public void captures_exception_if_anything_goes_wrong()
        {
            var exception = new NotImplementedException();

            ClassUnderTest.ConfigureSteps(x => { x += (s, c) => { throw exception; }; });


            ClassUnderTest.Execute(step, context);

            context.AssertWasCalled(x => x.IncrementExceptions());
        }