示例#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);
 }