Пример #1
0
 public static VsTestSettings ResetFramework(this VsTestSettings toolSettings)
 {
     toolSettings           = toolSettings.NewInstance();
     toolSettings.Framework = null;
     return(toolSettings);
 }
Пример #2
0
 public static VsTestSettings SetEnableCodeCoverage(this VsTestSettings toolSettings, bool?enableCodeCoverage)
 {
     toolSettings = toolSettings.NewInstance();
     toolSettings.EnableCodeCoverage = enableCodeCoverage;
     return(toolSettings);
 }
Пример #3
0
 public static VsTestSettings ToggleEnableCodeCoverage(this VsTestSettings toolSettings)
 {
     toolSettings = toolSettings.NewInstance();
     toolSettings.EnableCodeCoverage = !toolSettings.EnableCodeCoverage;
     return(toolSettings);
 }
Пример #4
0
 public static VsTestSettings SetParallel(this VsTestSettings toolSettings, bool?parallel)
 {
     toolSettings          = toolSettings.NewInstance();
     toolSettings.Parallel = parallel;
     return(toolSettings);
 }
Пример #5
0
 public static VsTestSettings DisableParallel(this VsTestSettings toolSettings)
 {
     toolSettings          = toolSettings.NewInstance();
     toolSettings.Parallel = false;
     return(toolSettings);
 }
Пример #6
0
 public static VsTestSettings SetTests(this VsTestSettings toolSettings, IEnumerable <string> tests)
 {
     toolSettings = toolSettings.NewInstance();
     toolSettings.TestsInternal = tests.ToList();
     return(toolSettings);
 }
Пример #7
0
 public static VsTestSettings AddTests(this VsTestSettings toolSettings, IEnumerable <string> tests)
 {
     toolSettings = toolSettings.NewInstance();
     toolSettings.TestsInternal.AddRange(tests);
     return(toolSettings);
 }
Пример #8
0
 public static VsTestSettings ResetLogger(this VsTestSettings toolSettings)
 {
     toolSettings        = toolSettings.NewInstance();
     toolSettings.Logger = null;
     return(toolSettings);
 }
Пример #9
0
 public static VsTestSettings SetListTests(this VsTestSettings toolSettings, string listTests)
 {
     toolSettings           = toolSettings.NewInstance();
     toolSettings.ListTests = listTests;
     return(toolSettings);
 }
Пример #10
0
 public static VsTestSettings SetTestCaseFilter(this VsTestSettings toolSettings, string testCaseFilterKey, string testCaseFilterValue)
 {
     toolSettings = toolSettings.NewInstance();
     toolSettings.TestCaseFiltersInternal[testCaseFilterKey] = testCaseFilterValue;
     return(toolSettings);
 }
Пример #11
0
 public static VsTestSettings SetLogger(this VsTestSettings toolSettings, string logger)
 {
     toolSettings        = toolSettings.NewInstance();
     toolSettings.Logger = logger;
     return(toolSettings);
 }
Пример #12
0
 public static VsTestSettings RemoveTestCaseFilter(this VsTestSettings toolSettings, string testCaseFilterKey)
 {
     toolSettings = toolSettings.NewInstance();
     toolSettings.TestCaseFiltersInternal.Remove(testCaseFilterKey);
     return(toolSettings);
 }
Пример #13
0
 public static VsTestSettings AddTestCaseFilter(this VsTestSettings toolSettings, string testCaseFilterKey, string testCaseFilterValue)
 {
     toolSettings = toolSettings.NewInstance();
     toolSettings.TestCaseFiltersInternal.Add(testCaseFilterKey, testCaseFilterValue);
     return(toolSettings);
 }
Пример #14
0
 public static VsTestSettings SetTestCaseFilters(this VsTestSettings toolSettings, IDictionary <string, string> testCaseFilters)
 {
     toolSettings = toolSettings.NewInstance();
     toolSettings.TestCaseFiltersInternal = testCaseFilters.ToDictionary(x => x.Key, x => x.Value, StringComparer.OrdinalIgnoreCase);
     return(toolSettings);
 }
Пример #15
0
 public static VsTestSettings ResetSettingsFile(this VsTestSettings toolSettings)
 {
     toolSettings = toolSettings.NewInstance();
     toolSettings.SettingsFile = null;
     return(toolSettings);
 }
Пример #16
0
 public static VsTestSettings EnableListLoggers(this VsTestSettings toolSettings)
 {
     toolSettings             = toolSettings.NewInstance();
     toolSettings.ListLoggers = true;
     return(toolSettings);
 }
Пример #17
0
 public static VsTestSettings SetTests(this VsTestSettings toolSettings, params string[] tests)
 {
     toolSettings = toolSettings.NewInstance();
     toolSettings.TestsInternal = tests.ToList();
     return(toolSettings);
 }
Пример #18
0
 public static VsTestSettings SetListSettingsProviders(this VsTestSettings toolSettings, bool?listSettingsProviders)
 {
     toolSettings = toolSettings.NewInstance();
     toolSettings.ListSettingsProviders = listSettingsProviders;
     return(toolSettings);
 }
Пример #19
0
 public static VsTestSettings AddTests(this VsTestSettings toolSettings, params string[] tests)
 {
     toolSettings = toolSettings.NewInstance();
     toolSettings.TestsInternal.AddRange(tests);
     return(toolSettings);
 }
Пример #20
0
 public static VsTestSettings ResetListSettingsProviders(this VsTestSettings toolSettings)
 {
     toolSettings = toolSettings.NewInstance();
     toolSettings.ListSettingsProviders = null;
     return(toolSettings);
 }
Пример #21
0
 public static VsTestSettings ClearTests(this VsTestSettings toolSettings)
 {
     toolSettings = toolSettings.NewInstance();
     toolSettings.TestsInternal.Clear();
     return(toolSettings);
 }
Пример #22
0
 public static VsTestSettings DisableListSettingsProviders(this VsTestSettings toolSettings)
 {
     toolSettings = toolSettings.NewInstance();
     toolSettings.ListSettingsProviders = false;
     return(toolSettings);
 }
Пример #23
0
 public static VsTestSettings ResetParallel(this VsTestSettings toolSettings)
 {
     toolSettings          = toolSettings.NewInstance();
     toolSettings.Parallel = null;
     return(toolSettings);
 }
Пример #24
0
 public static VsTestSettings ToggleListSettingsProviders(this VsTestSettings toolSettings)
 {
     toolSettings = toolSettings.NewInstance();
     toolSettings.ListSettingsProviders = !toolSettings.ListSettingsProviders;
     return(toolSettings);
 }
Пример #25
0
 public static VsTestSettings ToggleParallel(this VsTestSettings toolSettings)
 {
     toolSettings          = toolSettings.NewInstance();
     toolSettings.Parallel = !toolSettings.Parallel;
     return(toolSettings);
 }
Пример #26
0
 public static VsTestSettings SetDiagnosticsFile(this VsTestSettings toolSettings, string diagnosticsFile)
 {
     toolSettings = toolSettings.NewInstance();
     toolSettings.DiagnosticsFile = diagnosticsFile;
     return(toolSettings);
 }
Пример #27
0
 public static VsTestSettings ResetEnableCodeCoverage(this VsTestSettings toolSettings)
 {
     toolSettings = toolSettings.NewInstance();
     toolSettings.EnableCodeCoverage = null;
     return(toolSettings);
 }
Пример #28
0
 public static VsTestSettings SetSettingsFile(this VsTestSettings toolSettings, string settingsFile)
 {
     toolSettings = toolSettings.NewInstance();
     toolSettings.SettingsFile = settingsFile;
     return(toolSettings);
 }
Пример #29
0
 public static VsTestSettings SetInIsolation(this VsTestSettings toolSettings, bool?inIsolation)
 {
     toolSettings             = toolSettings.NewInstance();
     toolSettings.InIsolation = inIsolation;
     return(toolSettings);
 }
Пример #30
0
 public static VsTestSettings SetFramework(this VsTestSettings toolSettings, VsTestFramework framework)
 {
     toolSettings           = toolSettings.NewInstance();
     toolSettings.Framework = framework;
     return(toolSettings);
 }