コード例 #1
0
        private static LightBddConfiguration Configure(Action <LightBddConfiguration> onConfigure)
        {
            var configuration = new LightBddConfiguration();

            configuration
            .ExecutionExtensionsConfiguration()
            .EnableStepCommenting();

            configuration.Get <FeatureProgressNotifierConfiguration>()
            .UpdateNotifier(MsTest2ProgressNotifier.CreateFeatureProgressNotifier());

            configuration.Get <ScenarioProgressNotifierConfiguration>()
            .UpdateNotifierProvider(MsTest2ProgressNotifier.CreateScenarioProgressNotifier);

            onConfigure(configuration);
            return(configuration);
        }
コード例 #2
0
 /// <summary>
 /// Appends LightBDD.MsTest2 default feature progress notifiers.
 /// </summary>
 public static FeatureProgressNotifierConfiguration AppendFrameworkDefaultProgressNotifiers(this FeatureProgressNotifierConfiguration configuration)
 {
     return(configuration.AppendNotifiers(MsTest2ProgressNotifier.CreateFeatureProgressNotifier()));
 }