public void Should_generate_a_proxy_that_forwards_to_call_router() { _result.Goo(); var call = Arg <ICall> .Matches(c => CallWasToMethodNamed(c, "Goo")); _callRouter.received(x => x.Route(call)); }
public void Should_tell_the_last_call_router_to_set_the_return_value_of_its_last_call() { _callRouter.received(x => x.LastCallShouldReturn(_valueToReturn, _argMatching)); }
public void Should_tell_substitute_to_assert_next_call_was_not_received_with_specified_arguments() { _routerForSubstitute.received(x => x.SetRoute <CheckReceivedCallsRoute>(MatchArgs.AsSpecifiedInCall, Quantity.None())); }
public void Should_pass_on_clear_options_to_substitutes_call_router() { _callRouter.received(x => x.Clear(ClearOptions)); }
public void Should_tell_substitute_to_add_callback_for_next_call_then_invoke_call() { _callRouter.received(x => x.SetRoute <DoWhenCalledRoute>(_callbackWithArguments, _matchArgs)); _call.received(x => x(_substitute)); }
public void Should_set_tell_the_substitute_to_assert_that_the_next_call_has_been_received_with_any_arguments() { _routerForSubstitute.received(x => x.SetRoute <CheckReceivedCallsRoute>(MatchArgs.Any, Quantity.AtLeastOne())); }
public void Should_tell_call_router_to_set_return_for_type() { _callRouter.received(x => x.SetReturnForType(It.Is(typeof(IFoo)), It.IsAny <IReturn>())); }
public void Should_clear_calls_on_substitutes_call_router() { _callRouter.received(x => x.ClearReceivedCalls()); }