public static void SetupFileSourceMatchersOnGlobalRunSpec(MockGlobalRunSpec runSpec, FileSourceMatchInfo source)
        {
            FileSourceHierarchicalPathMatcher matcher = new FileSourceHierarchicalPathMatcher(source);

            runSpec.Include = new List <IPathMatcher>()
            {
                new FileSourceStateMatcher(FileDispositionStates.Include, matcher)
            };
            runSpec.Exclude = new List <IPathMatcher>()
            {
                new FileSourceStateMatcher(FileDispositionStates.Exclude, matcher)
            };
            runSpec.CopyOnly = new List <IPathMatcher>()
            {
                new FileSourceStateMatcher(FileDispositionStates.CopyOnly, matcher)
            };
        }
        public static void SetupFileSourceMatchersOnGlobalRunSpec(MockGlobalRunSpec runSpec, FileSourceMatchInfo source)
        {
            FileSourceHierarchicalPathMatcher matcher = new FileSourceHierarchicalPathMatcher(source);

            runSpec.Include = new List <IPathMatcher>()
            {
                new FileSourceStateMatcher(FileDispositionStates.Include, matcher)
            };
            runSpec.Exclude = new List <IPathMatcher>()
            {
                new FileSourceStateMatcher(FileDispositionStates.Exclude, matcher)
            };
            runSpec.CopyOnly = new List <IPathMatcher>()
            {
                new FileSourceStateMatcher(FileDispositionStates.CopyOnly, matcher)
            };
            runSpec.Rename = source.Renames ?? new Dictionary <string, string>(StringComparer.Ordinal);
        }