public void Should_set_route_to_assert_that_the_next_call_has_not_been_received_with_any_arguments()
        {
            var state = mock <ISubstituteState>();

            _routerForSubstitute.FactoryMethodUsedToSetRoute(state);
            _routeFactory.received(x => x.CheckReceivedCalls(state, MatchArgs.Any, Quantity.None()));
        }
Beispiel #2
0
            public void Should_set_route_to_assert_next_call_was_not_received_with_specified_arguments()
            {
                var state = mock <ISubstituteState>();

                _routerForSubstitute.FactoryMethodUsedToSetRoute(state);
                _routeFactory.received(x => x.CheckReceivedCalls(state, MatchArgs.AsSpecifiedInCall, Quantity.None()));
            }
Beispiel #3
0
            public void Should_set_route_to_do_action_when_called_and_invoke_call()
            {
                var state = mock <ISubstituteState>();

                _callRouter.FactoryMethodUsedToSetRoute(state);

                _routeFactory.received(x => x.DoWhenCalled(state, _callbackWithArguments, _matchArgs));
                _call.received(x => x(_substitute));
            }