Exemplo n.º 1
0
 public LambdaParameterSource(ParameterSourceFunc getParameters)
 {
     this.getParameters = getParameters;
 }
Exemplo n.º 2
0
 /// <summary>
 /// Includes the given delegate as an generator of test method parameters.
 /// All such registered parameter sources will be asked to contribute parameters to test methods.
 ///
 /// <para>
 /// Given a test method, yields zero or more sets
 /// of method parameters to be passed into the test method.
 /// Each object array returned represents a distinct
 /// invocation of the test method.
 /// </para>
 /// </summary>
 public ParameterSourceExpression Add(ParameterSourceFunc getParameters)
 {
     config.AddParameterSource(() => new LambdaParameterSource(getParameters));
     return(this);
 }