public void GlobalSetup()
        {
            (_pattern, _, _) = IterationBuilder.BuildPattern(PatternLength, SingleCharacterCount, MultiCharacterCount);

            _str = IterationBuilder.BuildTestString(_pattern);

            _fastWildcardMatcher = new FastWildcardMatcher();
        }
Пример #2
0
        public void GlobalSetup()
        {
            (_pattern, _, _) = IterationBuilder.BuildPattern(PatternLength, SingleCharacterCount, MultiCharacterCount);

            _str = IterationBuilder.BuildTestString(_pattern);

            _fastWildcardMatcher = new FastWildcardMatcher();
#if !NETCOREAPP2_1
            _likeMatcher = new LikeMatcher();
#endif
#if NETCOREAPP
            _powerShellMatcher         = new PowerShellMatcher(_pattern, System.Management.Automation.WildcardOptions.None);
            _powerShellMatcherCompiled = new PowerShellMatcher(_pattern, System.Management.Automation.WildcardOptions.Compiled);
#endif
            _regexMatcher         = new RegexMatcher(_pattern, RegexOptions.None);
            _regexMatcherCompiled = new RegexMatcher(_pattern, RegexOptions.Compiled);
            _wildcardMatchMatcher = new WildcardMatchMatcher();
        }