コード例 #1
0
        protected TagFilteredFeatureGeneratorProvider(ITagFilterMatcher tagFilterMatcher, string registeredName)
        {
            if (tagFilterMatcher == null) throw new ArgumentNullException("tagFilterMatcher");
            if (registeredName == null) throw new ArgumentNullException("registeredName");

            this.tagFilterMatcher = tagFilterMatcher;
            this.registeredName = registeredName;
        }
コード例 #2
0
 public RetryUnitTestFeatureGenerator(IUnitTestGeneratorProvider testGeneratorProvider, CodeDomHelper codeDomHelper, GeneratorConfiguration generatorConfiguration, IDecoratorRegistry decoratorRegistry, ITagFilterMatcher tagFilterMatcher)
 {
     this.testGeneratorProvider  = testGeneratorProvider;
     this.codeDomHelper          = codeDomHelper;
     this.generatorConfiguration = generatorConfiguration;
     this.decoratorRegistry      = decoratorRegistry;
     this.tagFilterMatcher       = tagFilterMatcher;
 }
コード例 #3
0
ファイル: ITagFilterMatcher.cs プロジェクト: yazide/SpecFlow
        public static bool MatchPrefix(this ITagFilterMatcher tagFilterMatcher, string tagFilter, Feature feature)
        {
            if (feature.Tags == null)
            {
                return(false);
            }

            return(tagFilterMatcher.MatchPrefix(tagFilter, feature.Tags.Select(t => t.Name)));
        }
コード例 #4
0
ファイル: ITagFilterMatcher.cs プロジェクト: yazide/SpecFlow
        public static bool Match(this ITagFilterMatcher tagFilterMatcher, string tagFilter, string tagName)
        {
            if (tagName == null)
            {
                return(false);
            }

            return(tagFilterMatcher.Match(tagFilter, new string[] { tagName }));
        }
コード例 #5
0
ファイル: ITagFilterMatcher.cs プロジェクト: yazide/SpecFlow
        public static bool GetTagValue(this ITagFilterMatcher tagFilterMatcher, string tagFilter, Feature feature, out string value)
        {
            if (feature.Tags == null)
            {
                value = null;
                return(false);
            }

            return(tagFilterMatcher.GetTagValue(tagFilter, feature.Tags.Select(t => t.Name), out value));
        }
コード例 #6
0
 public RetryUnitTestFeatureGenerator(IUnitTestGeneratorProvider testGeneratorProvider,
                                      CodeDomHelper codeDomHelper, SpecFlowConfiguration specFlowConfiguration,
                                      IDecoratorRegistry decoratorRegistry, ITagFilterMatcher tagFilterMatcher)
 {
     _testGeneratorProvider = testGeneratorProvider;
     _codeDomHelper         = codeDomHelper;
     _specFlowConfiguration = specFlowConfiguration;
     _decoratorRegistry     = decoratorRegistry;
     _tagFilterMatcher      = tagFilterMatcher;
 }
コード例 #7
0
        protected TagFilteredFeatureGeneratorProvider(ITagFilterMatcher tagFilterMatcher, string registeredName)
        {
            if (tagFilterMatcher == null)
            {
                throw new ArgumentNullException("tagFilterMatcher");
            }
            if (registeredName == null)
            {
                throw new ArgumentNullException("registeredName");
            }

            this.tagFilterMatcher = tagFilterMatcher;
            this.registeredName   = registeredName;
        }
コード例 #8
0
 public IgnoreDecorator(ITagFilterMatcher tagFilterMatcher)
 {
     this.tagFilterMatcher = tagFilterMatcher;
 }
コード例 #9
0
 public static bool GetTagValue(this ITagFilterMatcher tagFilterMatcher, string tagFilter, SpecFlowDocument document, out string value)
 {
     return(tagFilterMatcher.GetTagValue(tagFilter, document.SpecFlowFeature.Tags.Select(t => t.GetNameWithoutAt()), out value));
 }
コード例 #10
0
 public NonParallelizableDecorator(ITagFilterMatcher tagFilterMatcher, SpecFlowConfiguration generatorConfiguration)
 {
     this.tagFilterMatcher = tagFilterMatcher;
     nonParallelizableTags = generatorConfiguration.AddNonParallelizableMarkerForTags;
 }
コード例 #11
0
 public ParallelizeDecorator(ITagFilterMatcher tagFilterMatcher, SpecFlowConfiguration generatorConfiguration)
 {
     this.tagFilterMatcher = tagFilterMatcher;
     this.generateParallelCodeForFeatures  = generatorConfiguration.MarkFeaturesParallelizable;
     this.ignoreParallelCodeGenerationTags = generatorConfiguration.SkipParallelizableMarkerForTags;
 }
コード例 #12
0
 public RemoveRetryTagFromCategoriesDecarator(ITagFilterMatcher tagFilterMatcher)
 {
     this.tagFilterMatcher = tagFilterMatcher;
 }
コード例 #13
0
 public TestTagFilteredFeatureGeneratorProvider(ITagFilterMatcher tagFilterMatcher, string registeredName) : base(tagFilterMatcher, registeredName)
 {
 }
コード例 #14
0
ファイル: IgnoreDecorator.cs プロジェクト: Galad/SpecFlow
 public IgnoreDecorator(ITagFilterMatcher tagFilterMatcher)
 {
     this.tagFilterMatcher = tagFilterMatcher;
 }
コード例 #15
0
 public MyMethodTagDecorator(ITagFilterMatcher tagFilterMatcher)
 {
     _tagFilterMatcher = tagFilterMatcher;
 }
コード例 #16
0
 public ExternalDataFeaturePatcher(SpecFlowProjectConfiguration configuration, ITagFilterMatcher tagFilterMatcher, ITestDataProvider testDataProvider)
 {
     _tagFilterMatcher = tagFilterMatcher;
     _testDataProvider = testDataProvider;
 }
コード例 #17
0
 public TestTagFilteredFeatureGeneratorProvider(ITagFilterMatcher tagFilterMatcher, string registeredName) : base(tagFilterMatcher, registeredName)
 {
 }
コード例 #18
0
 public static bool MatchPrefix(this ITagFilterMatcher tagFilterMatcher, string tagFilter, SpecFlowDocument document)
 {
     return(tagFilterMatcher.MatchPrefix(tagFilter, document.SpecFlowFeature.Tags.Select(t => t.GetNameWithoutAt())));
 }