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