예제 #1
0
 protected override void Context()
 {
     base.Context();
     _parameterScaling1 = A.Fake <ParameterScaling>();
     _parameterScaling2 = A.Fake <ParameterScaling>();
     _scalingCommand1   = A.Fake <IPKSimCommand>();
     _scalingCommand2   = A.Fake <IPKSimCommand>();
     A.CallTo(() => _parameterScaling1.Scale()).Returns(_scalingCommand1);
     A.CallTo(() => _parameterScaling2.Scale()).Returns(_scalingCommand2);
 }
예제 #2
0
 public void should_iterate_over_all_defined_parameter_scalings_and_perform_the_scaling_on_the_target_individual()
 {
     A.CallTo(() => _parameterScaling1.Scale()).MustHaveHappened();
     A.CallTo(() => _parameterScaling2.Scale()).MustHaveHappened();
 }