コード例 #1
0
 public static VSTestSettings ToggleEnableCodeCoverage(this VSTestSettings toolSettings)
 {
     toolSettings = toolSettings.NewInstance();
     toolSettings.EnableCodeCoverage = !toolSettings.EnableCodeCoverage;
     return(toolSettings);
 }
コード例 #2
0
 public static VSTestSettings ResetListSettingsProviders(this VSTestSettings toolSettings)
 {
     toolSettings = toolSettings.NewInstance();
     toolSettings.ListSettingsProviders = null;
     return(toolSettings);
 }
コード例 #3
0
 public static VSTestSettings ToggleListSettingsProviders(this VSTestSettings toolSettings)
 {
     toolSettings = toolSettings.NewInstance();
     toolSettings.ListSettingsProviders = !toolSettings.ListSettingsProviders;
     return(toolSettings);
 }
コード例 #4
0
 public static VSTestSettings ResetLogger(this VSTestSettings toolSettings)
 {
     toolSettings        = toolSettings.NewInstance();
     toolSettings.Logger = null;
     return(toolSettings);
 }
コード例 #5
0
 public static VSTestSettings EnableListLoggers(this VSTestSettings toolSettings)
 {
     toolSettings             = toolSettings.NewInstance();
     toolSettings.ListLoggers = true;
     return(toolSettings);
 }
コード例 #6
0
 public static VSTestSettings AddTestCaseFilter(this VSTestSettings toolSettings, string testCaseFilterKey, string testCaseFilterValue)
 {
     toolSettings = toolSettings.NewInstance();
     toolSettings.TestCaseFiltersInternal.Add(testCaseFilterKey, testCaseFilterValue);
     return(toolSettings);
 }
コード例 #7
0
 public static VSTestSettings SetTestCaseFilter(this VSTestSettings toolSettings, string testCaseFilterKey, string testCaseFilterValue)
 {
     toolSettings = toolSettings.NewInstance();
     toolSettings.TestCaseFiltersInternal[testCaseFilterKey] = testCaseFilterValue;
     return(toolSettings);
 }
コード例 #8
0
 public static VSTestSettings ResetUseVsixExtensions(this VSTestSettings toolSettings)
 {
     toolSettings = toolSettings.NewInstance();
     toolSettings.UseVsixExtensions = null;
     return(toolSettings);
 }
コード例 #9
0
 public static VSTestSettings DisableUseVsixExtensions(this VSTestSettings toolSettings)
 {
     toolSettings = toolSettings.NewInstance();
     toolSettings.UseVsixExtensions = false;
     return(toolSettings);
 }
コード例 #10
0
 public static VSTestSettings ToggleInIsolation(this VSTestSettings toolSettings)
 {
     toolSettings             = toolSettings.NewInstance();
     toolSettings.InIsolation = !toolSettings.InIsolation;
     return(toolSettings);
 }
コード例 #11
0
 public static VSTestSettings SetUseVsixExtensions(this VSTestSettings toolSettings, bool?useVsixExtensions)
 {
     toolSettings = toolSettings.NewInstance();
     toolSettings.UseVsixExtensions = useVsixExtensions;
     return(toolSettings);
 }
コード例 #12
0
 public static VSTestSettings DisableInIsolation(this VSTestSettings toolSettings)
 {
     toolSettings             = toolSettings.NewInstance();
     toolSettings.InIsolation = false;
     return(toolSettings);
 }
コード例 #13
0
 public static VSTestSettings ResetInIsolation(this VSTestSettings toolSettings)
 {
     toolSettings             = toolSettings.NewInstance();
     toolSettings.InIsolation = null;
     return(toolSettings);
 }
コード例 #14
0
 public static VSTestSettings SetInIsolation(this VSTestSettings toolSettings, bool?inIsolation)
 {
     toolSettings             = toolSettings.NewInstance();
     toolSettings.InIsolation = inIsolation;
     return(toolSettings);
 }
コード例 #15
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);
 }
コード例 #16
0
 public static VSTestSettings ToggleUseVsixExtensions(this VSTestSettings toolSettings)
 {
     toolSettings = toolSettings.NewInstance();
     toolSettings.UseVsixExtensions = !toolSettings.UseVsixExtensions;
     return(toolSettings);
 }
コード例 #17
0
 public static VSTestSettings ClearTestCaseFilters(this VSTestSettings toolSettings)
 {
     toolSettings = toolSettings.NewInstance();
     toolSettings.TestCaseFiltersInternal.Clear();
     return(toolSettings);
 }
コード例 #18
0
 public static VSTestSettings SetTestAdapterPath(this VSTestSettings toolSettings, string testAdapterPath)
 {
     toolSettings = toolSettings.NewInstance();
     toolSettings.TestAdapterPath = testAdapterPath;
     return(toolSettings);
 }
コード例 #19
0
 public static VSTestSettings RemoveTestCaseFilter(this VSTestSettings toolSettings, string testCaseFilterKey)
 {
     toolSettings = toolSettings.NewInstance();
     toolSettings.TestCaseFiltersInternal.Remove(testCaseFilterKey);
     return(toolSettings);
 }
コード例 #20
0
 public static VSTestSettings ResetTestAdapterPath(this VSTestSettings toolSettings)
 {
     toolSettings = toolSettings.NewInstance();
     toolSettings.TestAdapterPath = null;
     return(toolSettings);
 }
コード例 #21
0
 public static VSTestSettings SetLogger(this VSTestSettings toolSettings, string logger)
 {
     toolSettings        = toolSettings.NewInstance();
     toolSettings.Logger = logger;
     return(toolSettings);
 }
コード例 #22
0
 public static VSTestSettings SetPlatform(this VSTestSettings toolSettings, VsTestPlatform platform)
 {
     toolSettings          = toolSettings.NewInstance();
     toolSettings.Platform = platform;
     return(toolSettings);
 }
コード例 #23
0
 public static VSTestSettings SetListTests(this VSTestSettings toolSettings, string listTests)
 {
     toolSettings           = toolSettings.NewInstance();
     toolSettings.ListTests = listTests;
     return(toolSettings);
 }
コード例 #24
0
 public static VSTestSettings ResetPlatform(this VSTestSettings toolSettings)
 {
     toolSettings          = toolSettings.NewInstance();
     toolSettings.Platform = null;
     return(toolSettings);
 }
コード例 #25
0
 public static VSTestSettings SetListSettingsProviders(this VSTestSettings toolSettings, bool?listSettingsProviders)
 {
     toolSettings = toolSettings.NewInstance();
     toolSettings.ListSettingsProviders = listSettingsProviders;
     return(toolSettings);
 }
コード例 #26
0
 public static VSTestSettings SetFramework(this VSTestSettings toolSettings, VsTestFramework framework)
 {
     toolSettings           = toolSettings.NewInstance();
     toolSettings.Framework = framework;
     return(toolSettings);
 }
コード例 #27
0
 public static VSTestSettings DisableListSettingsProviders(this VSTestSettings toolSettings)
 {
     toolSettings = toolSettings.NewInstance();
     toolSettings.ListSettingsProviders = false;
     return(toolSettings);
 }
コード例 #28
0
 public static VSTestSettings ResetFramework(this VSTestSettings toolSettings)
 {
     toolSettings           = toolSettings.NewInstance();
     toolSettings.Framework = null;
     return(toolSettings);
 }
コード例 #29
0
 public static VSTestSettings SetDiagnosticsFile(this VSTestSettings toolSettings, string diagnosticsFile)
 {
     toolSettings = toolSettings.NewInstance();
     toolSettings.DiagnosticsFile = diagnosticsFile;
     return(toolSettings);
 }
コード例 #30
0
 public static VSTestSettings ResetEnableCodeCoverage(this VSTestSettings toolSettings)
 {
     toolSettings = toolSettings.NewInstance();
     toolSettings.EnableCodeCoverage = null;
     return(toolSettings);
 }