public override void Context() { base.Context(); _propertyHelper.stub(x => x.IsCallToSetAReadWriteProperty(_call)).Return(true); ConfigureCall .stub(x => x.SetResultForCall(It.Is(_propertyGetter), It.IsAny <IReturn>(), It.Is(MatchArgs.AsSpecifiedInCall))) .WhenCalled(x => _returnPassedToResultSetter = (ReturnValue)x.Arguments[1]); }
public void Should_set_auto_value_as_value_to_return_for_subsequent_calls() { ConfigureCall.received(x => x.SetResultForCall(It.Is(_call), It.Matches <IReturn>(arg => arg.ReturnFor(null) == _autoValue), It.Is(MatchArgs.AsSpecifiedInCall))); }
public void Should_set_result() { ConfigureCall.received(x => x.SetResultForLastCall(_returnValue, _argMatching)); }
public void Should_set_auto_value_as_value_to_return_for_subsequent_calls() { ConfigureCall.did_not_receive_with_any_args(x => x.SetResultForCall(null, null, null)); }
public void Should_not_add_any_values_to_configured_results() { ConfigureCall.did_not_receive(x => x.SetResultForCall(It.Is(_propertyGetter), It.IsAny <IReturn>(), It.Is(MatchArgs.AsSpecifiedInCall))); }