Exemple #1
0
        /// <summary>
        /// Includes to configuration two of the default TestMethodGenerator(<see cref="NullArgumentMethodTestMethodGenerator"/>, <see cref="NullArgumentConstructorTestMethodGenerator"/>).
        /// </summary>
        /// <param name="configurator">The instance of configuration.</param>
        /// <returns>The instance of configuration.</returns>
        public static ITestMethodGeneratorConfigurator IncludeBuiltinGenerators(this ITestMethodGeneratorConfigurator configurator)
        {
            var testGeneratorConfigurator = configurator as TestMethodGeneratorConfigurator;

            configurator.AddGenerator <NullArgumentMethodTestMethodGenerator>()
            .AddGenerator <NullArgumentConstructorTestMethodGenerator>();

            return(configurator);
        }
Exemple #2
0
 /// <summary>
 /// Includes <see cref="NullArgumentConstructorTestMethodGenerator"/> to configuration.
 /// </summary>
 /// <param name="configurator">The instance of configuration.</param>
 /// <returns>The instance of configuration.</returns>
 public static ITestMethodGeneratorConfigurator IncludeNullArgumentConstructorTestMethodGenerator(this ITestMethodGeneratorConfigurator configurator)
 {
     configurator.AddGenerator <NullArgumentConstructorTestMethodGenerator>();
     return(configurator);
 }