Пример #1
0
 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)));
 }
Пример #3
0
 public void Should_set_result()
 {
     ConfigureCall.received(x => x.SetResultForLastCall(_returnValue, _argMatching));
 }
Пример #4
0
 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));
 }
Пример #5
0
 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)));
 }