Class TestFrameworkOptionsReadWriteExtensions
Extension methods for reading and writing ITestFrameworkDiscoveryOptions and ITestFrameworkExecutionOptions.
public static class TestFrameworkOptionsReadWriteExtensions
- Inheritance
-
TestFrameworkOptionsReadWriteExtensions
- Inherited Members
Methods
GetAssertEquivalentMaxDepth(ITestFrameworkExecutionOptions)
Gets a max recursive object depth for comparisons done with Assert.Equivalent.
public static int? GetAssertEquivalentMaxDepth(this ITestFrameworkExecutionOptions executionOptions)
Parameters
executionOptionsITestFrameworkExecutionOptions
Returns
- int?
GetCulture(ITestFrameworkDiscoveryOptions)
Gets the culture to use for discovering tests. null uses the default OS culture;
Empty uses the invariant culture; any other value passes the
provided value to CultureInfo(string) and uses the resulting object
with DefaultThreadCurrentCulture and
DefaultThreadCurrentUICulture.
public static string? GetCulture(this ITestFrameworkDiscoveryOptions discoveryOptions)
Parameters
discoveryOptionsITestFrameworkDiscoveryOptions
Returns
GetCulture(ITestFrameworkExecutionOptions)
Gets the culture to use for running tests. null uses the default OS culture;
Empty uses the invariant culture; any other value passes the
provided value to CultureInfo(string) and uses the resulting object
with DefaultThreadCurrentCulture and
DefaultThreadCurrentUICulture.
public static string? GetCulture(this ITestFrameworkExecutionOptions executionOptions)
Parameters
executionOptionsITestFrameworkExecutionOptions
Returns
GetDiagnosticMessages(ITestFrameworkDiscoveryOptions)
Gets a flag that determines whether diagnostic messages will be emitted.
public static bool? GetDiagnosticMessages(this ITestFrameworkDiscoveryOptions discoveryOptions)
Parameters
discoveryOptionsITestFrameworkDiscoveryOptions
Returns
- bool?
GetDiagnosticMessages(ITestFrameworkExecutionOptions)
Gets a flag that determines whether diagnostic messages will be emitted.
public static bool? GetDiagnosticMessages(this ITestFrameworkExecutionOptions executionOptions)
Parameters
executionOptionsITestFrameworkExecutionOptions
Returns
- bool?
GetDiagnosticMessagesOrDefault(ITestFrameworkDiscoveryOptions)
Gets a flag that determines whether diagnostic messages will be emitted. If the flag is not
set, returns the default value (false).
public static bool GetDiagnosticMessagesOrDefault(this ITestFrameworkDiscoveryOptions discoveryOptions)
Parameters
discoveryOptionsITestFrameworkDiscoveryOptions
Returns
GetDiagnosticMessagesOrDefault(ITestFrameworkExecutionOptions)
Gets a flag that determines whether diagnostic messages will be emitted. If the flag is not
present, returns the default value (false).
public static bool GetDiagnosticMessagesOrDefault(this ITestFrameworkExecutionOptions executionOptions)
Parameters
executionOptionsITestFrameworkExecutionOptions
Returns
GetDisableParallelization(ITestFrameworkExecutionOptions)
Gets a flag to disable parallelization.
public static bool? GetDisableParallelization(this ITestFrameworkExecutionOptions executionOptions)
Parameters
executionOptionsITestFrameworkExecutionOptions
Returns
- bool?
GetDisableParallelizationOrDefault(ITestFrameworkExecutionOptions)
Gets a flag to disable parallelization. If the flag is not present, returns the
default value (false).
public static bool GetDisableParallelizationOrDefault(this ITestFrameworkExecutionOptions executionOptions)
Parameters
executionOptionsITestFrameworkExecutionOptions
Returns
GetExplicitOption(ITestFrameworkExecutionOptions)
Gets a flag that indicates how explicit tests should be handled.
public static ExplicitOption? GetExplicitOption(this ITestFrameworkExecutionOptions executionOptions)
Parameters
executionOptionsITestFrameworkExecutionOptions
Returns
GetExplicitOptionOrDefault(ITestFrameworkExecutionOptions)
Gets a flag that indicates how explicit tests should be handled. If the flag is not present, returns the default value (Off).
public static ExplicitOption GetExplicitOptionOrDefault(this ITestFrameworkExecutionOptions executionOptions)
Parameters
executionOptionsITestFrameworkExecutionOptions
Returns
GetFailSkips(ITestFrameworkExecutionOptions)
Gets a flag to fail skipped tests.
public static bool? GetFailSkips(this ITestFrameworkExecutionOptions executionOptions)
Parameters
executionOptionsITestFrameworkExecutionOptions
Returns
- bool?
GetFailSkipsOrDefault(ITestFrameworkExecutionOptions)
Gets a flag to fail skipped tests. If the flag is not present, returns the default
value (false).
public static bool GetFailSkipsOrDefault(this ITestFrameworkExecutionOptions executionOptions)
Parameters
executionOptionsITestFrameworkExecutionOptions
Returns
GetFailTestsWithWarnings(ITestFrameworkExecutionOptions)
Gets a flag to fail passing tests with warnings.
public static bool? GetFailTestsWithWarnings(this ITestFrameworkExecutionOptions executionOptions)
Parameters
executionOptionsITestFrameworkExecutionOptions
Returns
- bool?
GetFailTestsWithWarningsOrDefault(ITestFrameworkExecutionOptions)
Gets a flag to fail passing tests with warning. If the flag is not present, returns
the default value (false).
public static bool GetFailTestsWithWarningsOrDefault(this ITestFrameworkExecutionOptions executionOptions)
Parameters
executionOptionsITestFrameworkExecutionOptions
Returns
GetIncludeSourceInformation(ITestFrameworkDiscoveryOptions)
Gets a flag that determines whether discovered test cases should include source information. Note that not all runners have access to source information, so this flag does not guarantee that source information will be provided.
public static bool? GetIncludeSourceInformation(this ITestFrameworkDiscoveryOptions discoveryOptions)
Parameters
discoveryOptionsITestFrameworkDiscoveryOptions
Returns
- bool?
GetIncludeSourceInformationOrDefault(ITestFrameworkDiscoveryOptions)
Gets a flag that determines whether discovered test cases should include source information.
Note that not all runners have access to source information, so this flag does not guarantee
that source information will be provided. If the flag is not present, returns the default
value (false).
public static bool GetIncludeSourceInformationOrDefault(this ITestFrameworkDiscoveryOptions discoveryOptions)
Parameters
discoveryOptionsITestFrameworkDiscoveryOptions
Returns
GetInternalDiagnosticMessages(ITestFrameworkDiscoveryOptions)
Gets a flag that determines whether internal diagnostic messages will be emitted.
public static bool? GetInternalDiagnosticMessages(this ITestFrameworkDiscoveryOptions discoveryOptions)
Parameters
discoveryOptionsITestFrameworkDiscoveryOptions
Returns
- bool?
GetInternalDiagnosticMessages(ITestFrameworkExecutionOptions)
Gets a flag that determines whether internal diagnostic messages will be emitted.
public static bool? GetInternalDiagnosticMessages(this ITestFrameworkExecutionOptions executionOptions)
Parameters
executionOptionsITestFrameworkExecutionOptions
Returns
- bool?
GetInternalDiagnosticMessagesOrDefault(ITestFrameworkDiscoveryOptions)
Gets a flag that determines whether internal diagnostic messages will be emitted. If the flag is not
set, returns the default value (false).
public static bool GetInternalDiagnosticMessagesOrDefault(this ITestFrameworkDiscoveryOptions discoveryOptions)
Parameters
discoveryOptionsITestFrameworkDiscoveryOptions
Returns
GetInternalDiagnosticMessagesOrDefault(ITestFrameworkExecutionOptions)
Gets a flag that determines whether internal diagnostic messages will be emitted. If the flag is not
present, returns the default value (false).
public static bool GetInternalDiagnosticMessagesOrDefault(this ITestFrameworkExecutionOptions executionOptions)
Parameters
executionOptionsITestFrameworkExecutionOptions
Returns
GetMaxParallelThreads(ITestFrameworkExecutionOptions)
Gets the maximum number of threads to use when running tests in parallel.
public static int? GetMaxParallelThreads(this ITestFrameworkExecutionOptions executionOptions)
Parameters
executionOptionsITestFrameworkExecutionOptions
Returns
- int?
GetMaxParallelThreadsOrDefault(ITestFrameworkExecutionOptions)
Gets the maximum number of threads to use when running tests in parallel. If set to 0 (or not set), the value of ProcessorCount is used; if set to a value less than 0, does not limit the number of threads.
public static int GetMaxParallelThreadsOrDefault(this ITestFrameworkExecutionOptions executionOptions)
Parameters
executionOptionsITestFrameworkExecutionOptions
Returns
GetMethodDisplay(ITestFrameworkDiscoveryOptions)
Gets a flag that determines the default display name format for test methods.
public static TestMethodDisplay? GetMethodDisplay(this ITestFrameworkDiscoveryOptions discoveryOptions)
Parameters
discoveryOptionsITestFrameworkDiscoveryOptions
Returns
GetMethodDisplayOptions(ITestFrameworkDiscoveryOptions)
Gets a flag that determines the default display name format options for test methods.
public static TestMethodDisplayOptions? GetMethodDisplayOptions(this ITestFrameworkDiscoveryOptions discoveryOptions)
Parameters
discoveryOptionsITestFrameworkDiscoveryOptions
Returns
GetMethodDisplayOptionsOrDefault(ITestFrameworkDiscoveryOptions)
Gets a flag that determines the default display name format options for test methods. If the flag is not present, returns the default value (None).
public static TestMethodDisplayOptions GetMethodDisplayOptionsOrDefault(this ITestFrameworkDiscoveryOptions discoveryOptions)
Parameters
discoveryOptionsITestFrameworkDiscoveryOptions
Returns
GetMethodDisplayOrDefault(ITestFrameworkDiscoveryOptions)
Gets a flag that determines the default display name format for test methods. If the flag is not present, returns the default value (ClassAndMethod).
public static TestMethodDisplay GetMethodDisplayOrDefault(this ITestFrameworkDiscoveryOptions discoveryOptions)
Parameters
discoveryOptionsITestFrameworkDiscoveryOptions
Returns
GetParallelAlgorithm(ITestFrameworkExecutionOptions)
Gets the parallel algorithm to be used.
public static ParallelAlgorithm? GetParallelAlgorithm(this ITestFrameworkExecutionOptions executionOptions)
Parameters
executionOptionsITestFrameworkExecutionOptions
Returns
GetParallelAlgorithmOrDefault(ITestFrameworkExecutionOptions)
Gets the parallel algorithm to be used. If the flag is not present, return the default value (Conservative).
public static ParallelAlgorithm GetParallelAlgorithmOrDefault(this ITestFrameworkExecutionOptions executionOptions)
Parameters
executionOptionsITestFrameworkExecutionOptions
Returns
GetPreEnumerateTheories(ITestFrameworkDiscoveryOptions)
Gets a flag that determines whether theories are pre-enumerated. If they enabled, then the discovery system will return a test case for each row of test data; they are disabled, then the discovery system will return a single test case for the theory.
public static bool? GetPreEnumerateTheories(this ITestFrameworkDiscoveryOptions discoveryOptions)
Parameters
discoveryOptionsITestFrameworkDiscoveryOptions
Returns
- bool?
GetPreEnumerateTheoriesOrDefault(ITestFrameworkDiscoveryOptions)
Gets a flag that determines whether theories are pre-enumerated. If they enabled, then the
discovery system will return a test case for each row of test data; they are disabled, then the
discovery system will return a single test case for the theory. If the flag is not present,
returns the default value (false).
public static bool GetPreEnumerateTheoriesOrDefault(this ITestFrameworkDiscoveryOptions discoveryOptions)
Parameters
discoveryOptionsITestFrameworkDiscoveryOptions
Returns
GetPrintMaxEnumerableLength(ITestFrameworkDiscoveryOptions)
Gets the maximum length for printing collections.
public static int? GetPrintMaxEnumerableLength(this ITestFrameworkDiscoveryOptions discoveryOptions)
Parameters
discoveryOptionsITestFrameworkDiscoveryOptions
Returns
- int?
GetPrintMaxEnumerableLength(ITestFrameworkExecutionOptions)
Gets the maximum length for printing collections.
public static int? GetPrintMaxEnumerableLength(this ITestFrameworkExecutionOptions executionOptions)
Parameters
executionOptionsITestFrameworkExecutionOptions
Returns
- int?
GetPrintMaxObjectDepth(ITestFrameworkDiscoveryOptions)
Gets the maximum recursive depth for printing objects.
public static int? GetPrintMaxObjectDepth(this ITestFrameworkDiscoveryOptions discoveryOptions)
Parameters
discoveryOptionsITestFrameworkDiscoveryOptions
Returns
- int?
GetPrintMaxObjectDepth(ITestFrameworkExecutionOptions)
Gets the maximum recursive depth for printing objects.
public static int? GetPrintMaxObjectDepth(this ITestFrameworkExecutionOptions executionOptions)
Parameters
executionOptionsITestFrameworkExecutionOptions
Returns
- int?
GetPrintMaxObjectMemberCount(ITestFrameworkDiscoveryOptions)
Gets the maximum numbers of members to show for printing objects.
public static int? GetPrintMaxObjectMemberCount(this ITestFrameworkDiscoveryOptions discoveryOptions)
Parameters
discoveryOptionsITestFrameworkDiscoveryOptions
Returns
- int?
GetPrintMaxObjectMemberCount(ITestFrameworkExecutionOptions)
Gets the maximum numbers of members to show for printing objects.
public static int? GetPrintMaxObjectMemberCount(this ITestFrameworkExecutionOptions executionOptions)
Parameters
executionOptionsITestFrameworkExecutionOptions
Returns
- int?
GetPrintMaxStringLength(ITestFrameworkDiscoveryOptions)
Gets the maximum length for printing strings.
public static int? GetPrintMaxStringLength(this ITestFrameworkDiscoveryOptions discoveryOptions)
Parameters
discoveryOptionsITestFrameworkDiscoveryOptions
Returns
- int?
GetPrintMaxStringLength(ITestFrameworkExecutionOptions)
Gets the maximum length for printing strings.
public static int? GetPrintMaxStringLength(this ITestFrameworkExecutionOptions executionOptions)
Parameters
executionOptionsITestFrameworkExecutionOptions
Returns
- int?
GetSeed(ITestFrameworkExecutionOptions)
Gets the value that should be used to seed randomness.
public static int? GetSeed(this ITestFrameworkExecutionOptions executionOptions)
Parameters
executionOptionsITestFrameworkExecutionOptions
Returns
- int?
GetShowLiveOutput(ITestFrameworkExecutionOptions)
Gets a flag which indicates if the developer wishes to see output from ITestOutputHelper live while it's being reported (in addition to seeing it collected together when the test is finished).
public static bool? GetShowLiveOutput(this ITestFrameworkExecutionOptions executionOptions)
Parameters
executionOptionsITestFrameworkExecutionOptions
Returns
- bool?
GetShowLiveOutputOrDefault(ITestFrameworkExecutionOptions)
Gets a flag which indicates if the developer wishes to see output from ITestOutputHelper
live while it's being reported (in addition to seeing it collected together when the test is finished).
If the flag is not present, returns the default value (false).
public static bool GetShowLiveOutputOrDefault(this ITestFrameworkExecutionOptions executionOptions)
Parameters
executionOptionsITestFrameworkExecutionOptions
Returns
GetStopOnTestFail(ITestFrameworkExecutionOptions)
Gets a flag that determines whether xUnit.net stop testing when a test fails.
public static bool? GetStopOnTestFail(this ITestFrameworkExecutionOptions executionOptions)
Parameters
executionOptionsITestFrameworkExecutionOptions
Returns
- bool?
GetStopOnTestFailOrDefault(ITestFrameworkExecutionOptions)
Gets a flag that determines whether xUnit.net stop testing when a test fails. If the flag
is not set, returns the default value (false).
public static bool GetStopOnTestFailOrDefault(this ITestFrameworkExecutionOptions executionOptions)
Parameters
executionOptionsITestFrameworkExecutionOptions
Returns
GetSynchronousMessageReporting(ITestFrameworkDiscoveryOptions)
Gets a flag that determines whether xUnit.net should report test results synchronously.
public static bool? GetSynchronousMessageReporting(this ITestFrameworkDiscoveryOptions discoveryOptions)
Parameters
discoveryOptionsITestFrameworkDiscoveryOptions
Returns
- bool?
GetSynchronousMessageReporting(ITestFrameworkExecutionOptions)
Gets a flag that determines whether xUnit.net should report test results synchronously.
public static bool? GetSynchronousMessageReporting(this ITestFrameworkExecutionOptions executionOptions)
Parameters
executionOptionsITestFrameworkExecutionOptions
Returns
- bool?
GetSynchronousMessageReportingOrDefault(ITestFrameworkDiscoveryOptions)
Gets a flag that determines whether xUnit.net should report test results synchronously.
If the flag is not set, returns the default value (false).
public static bool GetSynchronousMessageReportingOrDefault(this ITestFrameworkDiscoveryOptions discoveryOptions)
Parameters
discoveryOptionsITestFrameworkDiscoveryOptions
Returns
GetSynchronousMessageReportingOrDefault(ITestFrameworkExecutionOptions)
Gets a flag that determines whether xUnit.net should report test results synchronously.
If the flag is not set, returns the default value (false).
public static bool GetSynchronousMessageReportingOrDefault(this ITestFrameworkExecutionOptions executionOptions)
Parameters
executionOptionsITestFrameworkExecutionOptions
Returns
SetAssertEquivalentMaxDepth(ITestFrameworkExecutionOptions, int?)
Gets a max recursive object depth for comparisons done with Assert.Equivalent.
public static void SetAssertEquivalentMaxDepth(this ITestFrameworkExecutionOptions executionOptions, int? maxDepth)
Parameters
executionOptionsITestFrameworkExecutionOptionsmaxDepthint?
SetCulture(ITestFrameworkDiscoveryOptions, string?)
Sets the culture to use for discovering tests. null uses the default OS culture;
Empty uses the invariant culture; any other value passes the
provided value to CultureInfo(string) and uses the resulting object
with DefaultThreadCurrentCulture and
DefaultThreadCurrentUICulture.
public static void SetCulture(this ITestFrameworkDiscoveryOptions discoveryOptions, string? culture)
Parameters
discoveryOptionsITestFrameworkDiscoveryOptionsculturestring
SetCulture(ITestFrameworkExecutionOptions, string?)
Sets the culture to use for running tests. null uses the default OS culture;
Empty uses the invariant culture; any other value passes the
provided value to CultureInfo(string) and uses the resulting object
with DefaultThreadCurrentCulture and
DefaultThreadCurrentUICulture.
public static void SetCulture(this ITestFrameworkExecutionOptions executionOptions, string? culture)
Parameters
executionOptionsITestFrameworkExecutionOptionsculturestring
SetDiagnosticMessages(ITestFrameworkDiscoveryOptions, bool?)
Sets a flag that determines whether diagnostic messages will be emitted.
public static void SetDiagnosticMessages(this ITestFrameworkDiscoveryOptions discoveryOptions, bool? value)
Parameters
discoveryOptionsITestFrameworkDiscoveryOptionsvaluebool?
SetDiagnosticMessages(ITestFrameworkExecutionOptions, bool?)
Sets a flag that determines whether diagnostic messages will be emitted.
public static void SetDiagnosticMessages(this ITestFrameworkExecutionOptions executionOptions, bool? value)
Parameters
executionOptionsITestFrameworkExecutionOptionsvaluebool?
SetDisableParallelization(ITestFrameworkExecutionOptions, bool?)
Sets a flag to disable parallelization.
public static void SetDisableParallelization(this ITestFrameworkExecutionOptions executionOptions, bool? value)
Parameters
executionOptionsITestFrameworkExecutionOptionsvaluebool?
SetExplicitOption(ITestFrameworkExecutionOptions, ExplicitOption?)
Sets a flag to describe how explicit tests should be handled.
public static void SetExplicitOption(this ITestFrameworkExecutionOptions executionOptions, ExplicitOption? value)
Parameters
executionOptionsITestFrameworkExecutionOptionsvalueExplicitOption?
SetFailSkips(ITestFrameworkExecutionOptions, bool?)
Sets a flag to fail skipped tests.
public static void SetFailSkips(this ITestFrameworkExecutionOptions executionOptions, bool? value)
Parameters
executionOptionsITestFrameworkExecutionOptionsvaluebool?
SetFailTestsWithWarnings(ITestFrameworkExecutionOptions, bool?)
Sets a flag to fail passing tests with warnings.
public static void SetFailTestsWithWarnings(this ITestFrameworkExecutionOptions executionOptions, bool? value)
Parameters
executionOptionsITestFrameworkExecutionOptionsvaluebool?
SetIncludeSourceInformation(ITestFrameworkDiscoveryOptions, bool?)
Sets a flag that determines whether discovered test cases should include source information. Note that not all runners have access to source information, so this flag does not guarantee that source information will be provided.
public static void SetIncludeSourceInformation(this ITestFrameworkDiscoveryOptions discoveryOptions, bool? value)
Parameters
discoveryOptionsITestFrameworkDiscoveryOptionsvaluebool?
SetInternalDiagnosticMessages(ITestFrameworkDiscoveryOptions, bool?)
Sets a flag that determines whether internal diagnostic messages will be emitted.
public static void SetInternalDiagnosticMessages(this ITestFrameworkDiscoveryOptions discoveryOptions, bool? value)
Parameters
discoveryOptionsITestFrameworkDiscoveryOptionsvaluebool?
SetInternalDiagnosticMessages(ITestFrameworkExecutionOptions, bool?)
Sets a flag that determines whether internal diagnostic messages will be emitted.
public static void SetInternalDiagnosticMessages(this ITestFrameworkExecutionOptions executionOptions, bool? value)
Parameters
executionOptionsITestFrameworkExecutionOptionsvaluebool?
SetMaxParallelThreads(ITestFrameworkExecutionOptions, int?)
Sets the maximum number of threads to use when running tests in parallel. If set to 0 (the default value), does not limit the number of threads.
public static void SetMaxParallelThreads(this ITestFrameworkExecutionOptions executionOptions, int? value)
Parameters
executionOptionsITestFrameworkExecutionOptionsvalueint?
SetMethodDisplay(ITestFrameworkDiscoveryOptions, TestMethodDisplay?)
Sets a flag that determines the default display name format for test methods.
public static void SetMethodDisplay(this ITestFrameworkDiscoveryOptions discoveryOptions, TestMethodDisplay? value)
Parameters
discoveryOptionsITestFrameworkDiscoveryOptionsvalueTestMethodDisplay?
SetMethodDisplayOptions(ITestFrameworkDiscoveryOptions, TestMethodDisplayOptions?)
Sets the flags that determine the default display options for test methods.
public static void SetMethodDisplayOptions(this ITestFrameworkDiscoveryOptions discoveryOptions, TestMethodDisplayOptions? value)
Parameters
discoveryOptionsITestFrameworkDiscoveryOptionsvalueTestMethodDisplayOptions?
SetParallelAlgorithm(ITestFrameworkExecutionOptions, ParallelAlgorithm?)
Sets the parallel algorithm to be used.
public static void SetParallelAlgorithm(this ITestFrameworkExecutionOptions executionOptions, ParallelAlgorithm? value)
Parameters
executionOptionsITestFrameworkExecutionOptionsvalueParallelAlgorithm?
SetPreEnumerateTheories(ITestFrameworkDiscoveryOptions, bool?)
Sets a flag that determines whether theories are pre-enumerated. If they enabled, then the discovery system will return a test case for each row of test data; they are disabled, then the discovery system will return a single test case for the theory.
public static void SetPreEnumerateTheories(this ITestFrameworkDiscoveryOptions discoveryOptions, bool? value)
Parameters
discoveryOptionsITestFrameworkDiscoveryOptionsvaluebool?
SetPrintMaxEnumerableLength(ITestFrameworkDiscoveryOptions, int?)
Sets the maximum length for printing collections.
public static void SetPrintMaxEnumerableLength(this ITestFrameworkDiscoveryOptions discoveryOptions, int? value)
Parameters
discoveryOptionsITestFrameworkDiscoveryOptionsvalueint?
SetPrintMaxEnumerableLength(ITestFrameworkExecutionOptions, int?)
Sets the maximum length for printing collections.
public static void SetPrintMaxEnumerableLength(this ITestFrameworkExecutionOptions executionOptions, int? value)
Parameters
executionOptionsITestFrameworkExecutionOptionsvalueint?
SetPrintMaxObjectDepth(ITestFrameworkDiscoveryOptions, int?)
Sets the maximum recursive depth for printing objects.
public static void SetPrintMaxObjectDepth(this ITestFrameworkDiscoveryOptions discoveryOptions, int? value)
Parameters
discoveryOptionsITestFrameworkDiscoveryOptionsvalueint?
SetPrintMaxObjectDepth(ITestFrameworkExecutionOptions, int?)
Sets the maximum recursive depth for printing objects.
public static void SetPrintMaxObjectDepth(this ITestFrameworkExecutionOptions executionOptions, int? value)
Parameters
executionOptionsITestFrameworkExecutionOptionsvalueint?
SetPrintMaxObjectMemberCount(ITestFrameworkDiscoveryOptions, int?)
Sets the maximum numbers of members to show for printing objects.
public static void SetPrintMaxObjectMemberCount(this ITestFrameworkDiscoveryOptions discoveryOptions, int? value)
Parameters
discoveryOptionsITestFrameworkDiscoveryOptionsvalueint?
SetPrintMaxObjectMemberCount(ITestFrameworkExecutionOptions, int?)
Sets the maximum numbers of members to show for printing objects.
public static void SetPrintMaxObjectMemberCount(this ITestFrameworkExecutionOptions executionOptions, int? value)
Parameters
executionOptionsITestFrameworkExecutionOptionsvalueint?
SetPrintMaxStringLength(ITestFrameworkDiscoveryOptions, int?)
Sets the maximum length for printing strings.
public static void SetPrintMaxStringLength(this ITestFrameworkDiscoveryOptions discoveryOptions, int? value)
Parameters
discoveryOptionsITestFrameworkDiscoveryOptionsvalueint?
SetPrintMaxStringLength(ITestFrameworkExecutionOptions, int?)
Sets the maximum length for printing strings.
public static void SetPrintMaxStringLength(this ITestFrameworkExecutionOptions executionOptions, int? value)
Parameters
executionOptionsITestFrameworkExecutionOptionsvalueint?
SetSeed(ITestFrameworkExecutionOptions, int?)
Sets the value that should be used to seed randomness.
public static void SetSeed(this ITestFrameworkExecutionOptions executionOptions, int? value)
Parameters
executionOptionsITestFrameworkExecutionOptionsvalueint?
SetShowLiveOutput(ITestFrameworkExecutionOptions, bool?)
Sets a flag which indicates if the developer wishes to see output from ITestOutputHelper live while it's being reported (in addition to seeing it collected together when the test is finished).
public static void SetShowLiveOutput(this ITestFrameworkExecutionOptions executionOptions, bool? value)
Parameters
executionOptionsITestFrameworkExecutionOptionsvaluebool?
SetStopOnTestFail(ITestFrameworkExecutionOptions, bool?)
Sets a flag that determines whether xUnit.net stop testing when a test fails.
public static void SetStopOnTestFail(this ITestFrameworkExecutionOptions executionOptions, bool? value)
Parameters
executionOptionsITestFrameworkExecutionOptionsvaluebool?
SetSynchronousMessageReporting(ITestFrameworkDiscoveryOptions, bool?)
Sets a flag that determines whether xUnit.net should report test results synchronously.
public static void SetSynchronousMessageReporting(this ITestFrameworkDiscoveryOptions discoveryOptions, bool? value)
Parameters
discoveryOptionsITestFrameworkDiscoveryOptionsvaluebool?
SetSynchronousMessageReporting(ITestFrameworkExecutionOptions, bool?)
Sets a flag that determines whether xUnit.net should report test results synchronously.
public static void SetSynchronousMessageReporting(this ITestFrameworkExecutionOptions executionOptions, bool? value)
Parameters
executionOptionsITestFrameworkExecutionOptionsvaluebool?