Пример #1
0
            public CombinedIncludesExcludesOptions(IMsCodeCoverageIncludesExcludesOptions includesExcludesOptions, IEnumerable <string> additionalModulePathsIncludes, IEnumerable <string> additionalModulePathsExcludes)
            {
                CompanyNamesInclude    = includesExcludesOptions.CompanyNamesInclude;
                CompanyNamesExclude    = includesExcludesOptions.CompanyNamesExclude;
                PublicKeyTokensInclude = includesExcludesOptions.PublicKeyTokensInclude;
                PublicKeyTokensExclude = includesExcludesOptions.PublicKeyTokensExclude;
                SourcesExclude         = includesExcludesOptions.SourcesExclude;
                SourcesInclude         = includesExcludesOptions.SourcesInclude;
                AttributesExclude      = includesExcludesOptions.AttributesExclude;
                AttributesInclude      = includesExcludesOptions.AttributesInclude;
                FunctionsInclude       = includesExcludesOptions.FunctionsInclude;
                FunctionsExclude       = includesExcludesOptions.FunctionsExclude;
                var modulePathsIncludesFromOptions = includesExcludesOptions.ModulePathsInclude ?? Enumerable.Empty <string>();
                var modulePathsExcludesFromOptions = includesExcludesOptions.ModulePathsExclude ?? Enumerable.Empty <string>();

                ModulePathsInclude = additionalModulePathsIncludes.Concat(modulePathsIncludesFromOptions).ToArray();
                ModulePathsExclude = additionalModulePathsExcludes.Concat(modulePathsExcludesFromOptions).ToArray();
            }
Пример #2
0
 public RunSettingsTemplateReplacements(
     IMsCodeCoverageIncludesExcludesOptions settings,
     string resultsDirectory,
     string enabled,
     string testAdapter
     )
 {
     ResultsDirectory       = resultsDirectory;
     TestAdapter            = testAdapter;
     Enabled                = enabled;
     ModulePathsExclude     = GetExcludeIncludeElementsString(settings.ModulePathsExclude, "ModulePath");
     ModulePathsInclude     = GetExcludeIncludeElementsString(settings.ModulePathsInclude, "ModulePath");
     FunctionsExclude       = GetExcludeIncludeElementsString(settings.FunctionsExclude, "Function");
     FunctionsInclude       = GetExcludeIncludeElementsString(settings.FunctionsInclude, "Function");
     AttributesExclude      = GetExcludeIncludeElementsString(settings.AttributesExclude, "Attribute");
     AttributesInclude      = GetExcludeIncludeElementsString(settings.AttributesInclude, "Attribute");
     SourcesExclude         = GetExcludeIncludeElementsString(settings.SourcesExclude, "Source");
     SourcesInclude         = GetExcludeIncludeElementsString(settings.SourcesInclude, "Source");
     CompanyNamesExclude    = GetExcludeIncludeElementsString(settings.CompanyNamesExclude, "CompanyName");
     CompanyNamesInclude    = GetExcludeIncludeElementsString(settings.CompanyNamesInclude, "CompanyName");
     PublicKeyTokensExclude = GetExcludeIncludeElementsString(settings.PublicKeyTokensExclude, "PublicKeyToken");
     PublicKeyTokensInclude = GetExcludeIncludeElementsString(settings.PublicKeyTokensInclude, "PublicKeyToken");
 }