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