Table of Contents

Class TestFrameworkOptionsReadWriteExtensions

Namespace
Xunit.Sdk
Assembly
xunit.v3.runner.common.dll

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

executionOptions ITestFrameworkExecutionOptions

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

discoveryOptions ITestFrameworkDiscoveryOptions

Returns

string

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

executionOptions ITestFrameworkExecutionOptions

Returns

string

GetDiagnosticMessages(ITestFrameworkDiscoveryOptions)

Gets a flag that determines whether diagnostic messages will be emitted.

public static bool? GetDiagnosticMessages(this ITestFrameworkDiscoveryOptions discoveryOptions)

Parameters

discoveryOptions ITestFrameworkDiscoveryOptions

Returns

bool?

GetDiagnosticMessages(ITestFrameworkExecutionOptions)

Gets a flag that determines whether diagnostic messages will be emitted.

public static bool? GetDiagnosticMessages(this ITestFrameworkExecutionOptions executionOptions)

Parameters

executionOptions ITestFrameworkExecutionOptions

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

discoveryOptions ITestFrameworkDiscoveryOptions

Returns

bool

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

executionOptions ITestFrameworkExecutionOptions

Returns

bool

GetDisableParallelization(ITestFrameworkExecutionOptions)

Gets a flag to disable parallelization.

public static bool? GetDisableParallelization(this ITestFrameworkExecutionOptions executionOptions)

Parameters

executionOptions ITestFrameworkExecutionOptions

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

executionOptions ITestFrameworkExecutionOptions

Returns

bool

GetExplicitOption(ITestFrameworkExecutionOptions)

Gets a flag that indicates how explicit tests should be handled.

public static ExplicitOption? GetExplicitOption(this ITestFrameworkExecutionOptions executionOptions)

Parameters

executionOptions ITestFrameworkExecutionOptions

Returns

ExplicitOption?

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

executionOptions ITestFrameworkExecutionOptions

Returns

ExplicitOption

GetFailSkips(ITestFrameworkExecutionOptions)

Gets a flag to fail skipped tests.

public static bool? GetFailSkips(this ITestFrameworkExecutionOptions executionOptions)

Parameters

executionOptions ITestFrameworkExecutionOptions

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

executionOptions ITestFrameworkExecutionOptions

Returns

bool

GetFailTestsWithWarnings(ITestFrameworkExecutionOptions)

Gets a flag to fail passing tests with warnings.

public static bool? GetFailTestsWithWarnings(this ITestFrameworkExecutionOptions executionOptions)

Parameters

executionOptions ITestFrameworkExecutionOptions

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

executionOptions ITestFrameworkExecutionOptions

Returns

bool

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

discoveryOptions ITestFrameworkDiscoveryOptions

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

discoveryOptions ITestFrameworkDiscoveryOptions

Returns

bool

GetInternalDiagnosticMessages(ITestFrameworkDiscoveryOptions)

Gets a flag that determines whether internal diagnostic messages will be emitted.

public static bool? GetInternalDiagnosticMessages(this ITestFrameworkDiscoveryOptions discoveryOptions)

Parameters

discoveryOptions ITestFrameworkDiscoveryOptions

Returns

bool?

GetInternalDiagnosticMessages(ITestFrameworkExecutionOptions)

Gets a flag that determines whether internal diagnostic messages will be emitted.

public static bool? GetInternalDiagnosticMessages(this ITestFrameworkExecutionOptions executionOptions)

Parameters

executionOptions ITestFrameworkExecutionOptions

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

discoveryOptions ITestFrameworkDiscoveryOptions

Returns

bool

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

executionOptions ITestFrameworkExecutionOptions

Returns

bool

GetMaxParallelThreads(ITestFrameworkExecutionOptions)

Gets the maximum number of threads to use when running tests in parallel.

public static int? GetMaxParallelThreads(this ITestFrameworkExecutionOptions executionOptions)

Parameters

executionOptions ITestFrameworkExecutionOptions

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

executionOptions ITestFrameworkExecutionOptions

Returns

int

GetMethodDisplay(ITestFrameworkDiscoveryOptions)

Gets a flag that determines the default display name format for test methods.

public static TestMethodDisplay? GetMethodDisplay(this ITestFrameworkDiscoveryOptions discoveryOptions)

Parameters

discoveryOptions ITestFrameworkDiscoveryOptions

Returns

TestMethodDisplay?

GetMethodDisplayOptions(ITestFrameworkDiscoveryOptions)

Gets a flag that determines the default display name format options for test methods.

public static TestMethodDisplayOptions? GetMethodDisplayOptions(this ITestFrameworkDiscoveryOptions discoveryOptions)

Parameters

discoveryOptions ITestFrameworkDiscoveryOptions

Returns

TestMethodDisplayOptions?

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

discoveryOptions ITestFrameworkDiscoveryOptions

Returns

TestMethodDisplayOptions

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

discoveryOptions ITestFrameworkDiscoveryOptions

Returns

TestMethodDisplay

GetParallelAlgorithm(ITestFrameworkExecutionOptions)

Gets the parallel algorithm to be used.

public static ParallelAlgorithm? GetParallelAlgorithm(this ITestFrameworkExecutionOptions executionOptions)

Parameters

executionOptions ITestFrameworkExecutionOptions

Returns

ParallelAlgorithm?

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

executionOptions ITestFrameworkExecutionOptions

Returns

ParallelAlgorithm

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

discoveryOptions ITestFrameworkDiscoveryOptions

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

discoveryOptions ITestFrameworkDiscoveryOptions

Returns

bool

GetPrintMaxEnumerableLength(ITestFrameworkDiscoveryOptions)

Gets the maximum length for printing collections.

public static int? GetPrintMaxEnumerableLength(this ITestFrameworkDiscoveryOptions discoveryOptions)

Parameters

discoveryOptions ITestFrameworkDiscoveryOptions

Returns

int?

GetPrintMaxEnumerableLength(ITestFrameworkExecutionOptions)

Gets the maximum length for printing collections.

public static int? GetPrintMaxEnumerableLength(this ITestFrameworkExecutionOptions executionOptions)

Parameters

executionOptions ITestFrameworkExecutionOptions

Returns

int?

GetPrintMaxObjectDepth(ITestFrameworkDiscoveryOptions)

Gets the maximum recursive depth for printing objects.

public static int? GetPrintMaxObjectDepth(this ITestFrameworkDiscoveryOptions discoveryOptions)

Parameters

discoveryOptions ITestFrameworkDiscoveryOptions

Returns

int?

GetPrintMaxObjectDepth(ITestFrameworkExecutionOptions)

Gets the maximum recursive depth for printing objects.

public static int? GetPrintMaxObjectDepth(this ITestFrameworkExecutionOptions executionOptions)

Parameters

executionOptions ITestFrameworkExecutionOptions

Returns

int?

GetPrintMaxObjectMemberCount(ITestFrameworkDiscoveryOptions)

Gets the maximum numbers of members to show for printing objects.

public static int? GetPrintMaxObjectMemberCount(this ITestFrameworkDiscoveryOptions discoveryOptions)

Parameters

discoveryOptions ITestFrameworkDiscoveryOptions

Returns

int?

GetPrintMaxObjectMemberCount(ITestFrameworkExecutionOptions)

Gets the maximum numbers of members to show for printing objects.

public static int? GetPrintMaxObjectMemberCount(this ITestFrameworkExecutionOptions executionOptions)

Parameters

executionOptions ITestFrameworkExecutionOptions

Returns

int?

GetPrintMaxStringLength(ITestFrameworkDiscoveryOptions)

Gets the maximum length for printing strings.

public static int? GetPrintMaxStringLength(this ITestFrameworkDiscoveryOptions discoveryOptions)

Parameters

discoveryOptions ITestFrameworkDiscoveryOptions

Returns

int?

GetPrintMaxStringLength(ITestFrameworkExecutionOptions)

Gets the maximum length for printing strings.

public static int? GetPrintMaxStringLength(this ITestFrameworkExecutionOptions executionOptions)

Parameters

executionOptions ITestFrameworkExecutionOptions

Returns

int?

GetSeed(ITestFrameworkExecutionOptions)

Gets the value that should be used to seed randomness.

public static int? GetSeed(this ITestFrameworkExecutionOptions executionOptions)

Parameters

executionOptions ITestFrameworkExecutionOptions

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

executionOptions ITestFrameworkExecutionOptions

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

executionOptions ITestFrameworkExecutionOptions

Returns

bool

GetStopOnTestFail(ITestFrameworkExecutionOptions)

Gets a flag that determines whether xUnit.net stop testing when a test fails.

public static bool? GetStopOnTestFail(this ITestFrameworkExecutionOptions executionOptions)

Parameters

executionOptions ITestFrameworkExecutionOptions

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

executionOptions ITestFrameworkExecutionOptions

Returns

bool

GetSynchronousMessageReporting(ITestFrameworkDiscoveryOptions)

Gets a flag that determines whether xUnit.net should report test results synchronously.

public static bool? GetSynchronousMessageReporting(this ITestFrameworkDiscoveryOptions discoveryOptions)

Parameters

discoveryOptions ITestFrameworkDiscoveryOptions

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

executionOptions ITestFrameworkExecutionOptions

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

discoveryOptions ITestFrameworkDiscoveryOptions

Returns

bool

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

executionOptions ITestFrameworkExecutionOptions

Returns

bool

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

executionOptions ITestFrameworkExecutionOptions
maxDepth int?

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

discoveryOptions ITestFrameworkDiscoveryOptions
culture string

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

executionOptions ITestFrameworkExecutionOptions
culture string

SetDiagnosticMessages(ITestFrameworkDiscoveryOptions, bool?)

Sets a flag that determines whether diagnostic messages will be emitted.

public static void SetDiagnosticMessages(this ITestFrameworkDiscoveryOptions discoveryOptions, bool? value)

Parameters

discoveryOptions ITestFrameworkDiscoveryOptions
value bool?

SetDiagnosticMessages(ITestFrameworkExecutionOptions, bool?)

Sets a flag that determines whether diagnostic messages will be emitted.

public static void SetDiagnosticMessages(this ITestFrameworkExecutionOptions executionOptions, bool? value)

Parameters

executionOptions ITestFrameworkExecutionOptions
value bool?

SetDisableParallelization(ITestFrameworkExecutionOptions, bool?)

Sets a flag to disable parallelization.

public static void SetDisableParallelization(this ITestFrameworkExecutionOptions executionOptions, bool? value)

Parameters

executionOptions ITestFrameworkExecutionOptions
value bool?

SetExplicitOption(ITestFrameworkExecutionOptions, ExplicitOption?)

Sets a flag to describe how explicit tests should be handled.

public static void SetExplicitOption(this ITestFrameworkExecutionOptions executionOptions, ExplicitOption? value)

Parameters

executionOptions ITestFrameworkExecutionOptions
value ExplicitOption?

SetFailSkips(ITestFrameworkExecutionOptions, bool?)

Sets a flag to fail skipped tests.

public static void SetFailSkips(this ITestFrameworkExecutionOptions executionOptions, bool? value)

Parameters

executionOptions ITestFrameworkExecutionOptions
value bool?

SetFailTestsWithWarnings(ITestFrameworkExecutionOptions, bool?)

Sets a flag to fail passing tests with warnings.

public static void SetFailTestsWithWarnings(this ITestFrameworkExecutionOptions executionOptions, bool? value)

Parameters

executionOptions ITestFrameworkExecutionOptions
value bool?

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

discoveryOptions ITestFrameworkDiscoveryOptions
value bool?

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

discoveryOptions ITestFrameworkDiscoveryOptions
value bool?

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

executionOptions ITestFrameworkExecutionOptions
value bool?

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

executionOptions ITestFrameworkExecutionOptions
value int?

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

discoveryOptions ITestFrameworkDiscoveryOptions
value TestMethodDisplay?

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

discoveryOptions ITestFrameworkDiscoveryOptions
value TestMethodDisplayOptions?

SetParallelAlgorithm(ITestFrameworkExecutionOptions, ParallelAlgorithm?)

Sets the parallel algorithm to be used.

public static void SetParallelAlgorithm(this ITestFrameworkExecutionOptions executionOptions, ParallelAlgorithm? value)

Parameters

executionOptions ITestFrameworkExecutionOptions
value ParallelAlgorithm?

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

discoveryOptions ITestFrameworkDiscoveryOptions
value bool?

SetPrintMaxEnumerableLength(ITestFrameworkDiscoveryOptions, int?)

Sets the maximum length for printing collections.

public static void SetPrintMaxEnumerableLength(this ITestFrameworkDiscoveryOptions discoveryOptions, int? value)

Parameters

discoveryOptions ITestFrameworkDiscoveryOptions
value int?

SetPrintMaxEnumerableLength(ITestFrameworkExecutionOptions, int?)

Sets the maximum length for printing collections.

public static void SetPrintMaxEnumerableLength(this ITestFrameworkExecutionOptions executionOptions, int? value)

Parameters

executionOptions ITestFrameworkExecutionOptions
value int?

SetPrintMaxObjectDepth(ITestFrameworkDiscoveryOptions, int?)

Sets the maximum recursive depth for printing objects.

public static void SetPrintMaxObjectDepth(this ITestFrameworkDiscoveryOptions discoveryOptions, int? value)

Parameters

discoveryOptions ITestFrameworkDiscoveryOptions
value int?

SetPrintMaxObjectDepth(ITestFrameworkExecutionOptions, int?)

Sets the maximum recursive depth for printing objects.

public static void SetPrintMaxObjectDepth(this ITestFrameworkExecutionOptions executionOptions, int? value)

Parameters

executionOptions ITestFrameworkExecutionOptions
value int?

SetPrintMaxObjectMemberCount(ITestFrameworkDiscoveryOptions, int?)

Sets the maximum numbers of members to show for printing objects.

public static void SetPrintMaxObjectMemberCount(this ITestFrameworkDiscoveryOptions discoveryOptions, int? value)

Parameters

discoveryOptions ITestFrameworkDiscoveryOptions
value int?

SetPrintMaxObjectMemberCount(ITestFrameworkExecutionOptions, int?)

Sets the maximum numbers of members to show for printing objects.

public static void SetPrintMaxObjectMemberCount(this ITestFrameworkExecutionOptions executionOptions, int? value)

Parameters

executionOptions ITestFrameworkExecutionOptions
value int?

SetPrintMaxStringLength(ITestFrameworkDiscoveryOptions, int?)

Sets the maximum length for printing strings.

public static void SetPrintMaxStringLength(this ITestFrameworkDiscoveryOptions discoveryOptions, int? value)

Parameters

discoveryOptions ITestFrameworkDiscoveryOptions
value int?

SetPrintMaxStringLength(ITestFrameworkExecutionOptions, int?)

Sets the maximum length for printing strings.

public static void SetPrintMaxStringLength(this ITestFrameworkExecutionOptions executionOptions, int? value)

Parameters

executionOptions ITestFrameworkExecutionOptions
value int?

SetSeed(ITestFrameworkExecutionOptions, int?)

Sets the value that should be used to seed randomness.

public static void SetSeed(this ITestFrameworkExecutionOptions executionOptions, int? value)

Parameters

executionOptions ITestFrameworkExecutionOptions
value int?

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

executionOptions ITestFrameworkExecutionOptions
value bool?

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

executionOptions ITestFrameworkExecutionOptions
value bool?

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

discoveryOptions ITestFrameworkDiscoveryOptions
value bool?

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

executionOptions ITestFrameworkExecutionOptions
value bool?