コード例 #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);
 }