xunit.v3.runner.inproc.console
This class is the entry point for the in-process console-based runner used for
xUnit.net v3 test projects.
The arguments passed to the application; typically pulled from the Main method.
The optional test assembly; if null, is used
to find the current assembly as the test assembly
This class is the entry point for the in-process console-based runner used for
xUnit.net v3 test projects.
The arguments passed to the application; typically pulled from the Main method.
The optional test assembly; if null, is used
to find the current assembly as the test assembly
Attempt to cancel the console runner execution.
The entry point to begin running tests.
The return value intended to be returned by the Main method.
Creates a new instance and runs it via .
The arguments passed to the application; typically pulled from the Main method.
The return value intended to be returned by the Main method.
Override this function to change the default output encoding for the system console.
The default is set to to support our usage of Unicode
characters in output (for example, the up and down arrows printed for pointers with
mismatched assertion values).
Implementation of for xUnit.net v3.
This class is an implementation detail for Microsoft.Testing.Platform that is public for testing purposes.
Use this class at your own risk, as breaking changes may occur as needed.
Implementation of for xUnit.net v3.
This class is an implementation detail for Microsoft.Testing.Platform that is public for testing purposes.
Use this class at your own risk, as breaking changes may occur as needed.
Parse the command line options, placing them into the project and project assembly configuration.
The Microsoft.Testing.Platform
The Microsoft.Testing.Platform
The project assembly to place the parsed values into
Base class for all Microsoft.Testing.Platform classes which are extensions.
This class is an implementation detail for Microsoft.Testing.Platform that is public for testing purposes.
Use this class at your own risk, as breaking changes may occur as needed.
Base class for all Microsoft.Testing.Platform classes which are extensions.
This class is an implementation detail for Microsoft.Testing.Platform that is public for testing purposes.
Use this class at your own risk, as breaking changes may occur as needed.
Implementation of which forwards diagnostic messages to
an implementation of .
This class is an implementation detail for Microsoft.Testing.Platform that is public for testing purposes.
Use this class at your own risk, as breaking changes may occur as needed.
Implementation of which forwards diagnostic messages to
an implementation of .
This class is an implementation detail for Microsoft.Testing.Platform that is public for testing purposes.
Use this class at your own risk, as breaking changes may occur as needed.
Factory function for the message sink
Implementation of which forwards the messages onto
an implementation of .
This class is an implementation detail for Microsoft.Testing.Platform that is public for testing purposes.
Use this class at your own risk, as breaking changes may occur as needed.
Implementation of which forwards the messages onto
an implementation of .
This class is an implementation detail for Microsoft.Testing.Platform that is public for testing purposes.
Use this class at your own risk, as breaking changes may occur as needed.
Abstract base class that implements .
The component name
The component UID
This class is an implementation detail for Microsoft.Testing.Platform that is public for testing purposes.
Use this class at your own risk, as breaking changes may occur as needed.
Abstract base class that implements .
The component name
The component UID
This class is an implementation detail for Microsoft.Testing.Platform that is public for testing purposes.
Use this class at your own risk, as breaking changes may occur as needed.
Creates an instance of with the given message, to
be printed in the given color.
The message
The message color
Implementation of and that
forwards diagnostic messages to the . It wraps an existing implementation
of to forward all messages to.
This class is an implementation detail for Microsoft.Testing.Platform that is public for testing purposes.
Use this class at your own risk, as breaking changes may occur as needed.
Implementation of and that
forwards diagnostic messages to the . It wraps an existing implementation
of to forward all messages to.
This class is an implementation detail for Microsoft.Testing.Platform that is public for testing purposes.
Use this class at your own risk, as breaking changes may occur as needed.
Gets the inner message sink.
Factory function for the message sink
Implementation of and
that sends log messages to the . It optionally wraps an existing
implementation of to forward all messages to. The
flag is used to only output raw log messages (typically used by reporter message handlers that need
to output text that is designed to be consumed programatically).
This class is an implementation detail for Microsoft.Testing.Platform that is public for testing purposes.
Use this class at your own risk, as breaking changes may occur as needed.
Implementation of and
that sends log messages to the . It optionally wraps an existing
implementation of to forward all messages to. The
flag is used to only output raw log messages (typically used by reporter message handlers that need
to output text that is designed to be consumed programatically).
This class is an implementation detail for Microsoft.Testing.Platform that is public for testing purposes.
Use this class at your own risk, as breaking changes may occur as needed.
Consumer of for xUnit.net v3.
This class is an implementation detail for Microsoft.Testing.Platform that is public for testing purposes.
Use this class at your own risk, as breaking changes may occur as needed.
Parses configuration from and places the values into
an instance of .
The configuration
The project assembly to put config values into
The values of the configuration keys
Implementation of and in order to convert
xUnit.net v3 discovery messages into Microsoft.Testing.Platform messages.
The inner sink to delegate messages to
The full name of the test assembly (via )
The MTP session UID
The message bus for reporting MTP messages to
The cancellation token provided by MTP
This class is an implementation detail for Microsoft.Testing.Platform that is public for testing purposes.
Use this class at your own risk, as breaking changes may occur as needed.
Implementation of and in order to convert
xUnit.net v3 discovery messages into Microsoft.Testing.Platform messages.
The inner sink to delegate messages to
The full name of the test assembly (via )
The MTP session UID
The message bus for reporting MTP messages to
The cancellation token provided by MTP
This class is an implementation detail for Microsoft.Testing.Platform that is public for testing purposes.
Use this class at your own risk, as breaking changes may occur as needed.
Implementation of and in order to convert
xUnit.net v3 execution messages into Microsoft.Testing.Platform messages.
The inner sink to delegate messages to
The MTP session UID
The message bus for reporting MTP messages to
Information class that knows whether TRX reporting is enabled
The output device to write messages to
A flag to indicate whether live output should be shown
A flag to indicate if we're running in server mode (inside Test Explorer)
The cancellation token provided by MTP
This class is an implementation detail for Microsoft.Testing.Platform that is public for testing purposes.
Use this class at your own risk, as breaking changes may occur as needed.
Implementation of and in order to convert
xUnit.net v3 execution messages into Microsoft.Testing.Platform messages.
The inner sink to delegate messages to
The MTP session UID
The message bus for reporting MTP messages to
Information class that knows whether TRX reporting is enabled
The output device to write messages to
A flag to indicate whether live output should be shown
A flag to indicate if we're running in server mode (inside Test Explorer)
The cancellation token provided by MTP
This class is an implementation detail for Microsoft.Testing.Platform that is public for testing purposes.
Use this class at your own risk, as breaking changes may occur as needed.
Implementation of to run xUnit.net v3 test projects.
Runs the test project.
The command line arguments that were passed to the executable
The extension registration callback
The return code to be returned from Main
An exception type that is used to to report failed
test exception information back to Microsoft.Testing.Platform.
This class is an implementation detail for Microsoft.Testing.Platform that is public for testing purposes.
Use this class at your own risk, as breaking changes may occur as needed.
An exception type that is used to to report failed
test exception information back to Microsoft.Testing.Platform.
This class is an implementation detail for Microsoft.Testing.Platform that is public for testing purposes.
Use this class at your own risk, as breaking changes may occur as needed.
Implementation of to supplement TRX reporting
with xUnit.net v3 information.
This class is an implementation detail for Microsoft.Testing.Platform that is public for testing purposes.
Use this class at your own risk, as breaking changes may occur as needed.
Implementation of to supplement TRX reporting
with xUnit.net v3 information.
This class is an implementation detail for Microsoft.Testing.Platform that is public for testing purposes.
Use this class at your own risk, as breaking changes may occur as needed.
Gets a flag to indicate whether TRX reporting is enabled
A flag which indicates the automated mode we're running in.
We are running in non-automated mode
We are running in automated mode, without synchronous message reporting
We are running in automated mode, with synchronous message reporting
The project assembly runner class, used by .
The assembly under test
The automated mode we're running in
The source information provider
The cancellation token source used to indicate cancellation
The project assembly runner class, used by .
The assembly under test
The automated mode we're running in
The source information provider
The cancellation token source used to indicate cancellation
Initializes an instance of the class, without support
for source information.
The assembly under test
The automated mode we're running in
The cancellation token source used to indicate cancellation
Gets a one-line banner to be printed when the runner is executed.
Gets the summaries of the test execution, once it is finished.
Discovers tests in the given test project.
The test project assembly
The pipeline startup object
The optional message sink to send messages to
The optional message sink to send diagnostic messages to
A collection to contain the test cases to run, if desired
Invoke the instance of , if it exists, and returns the instance
that was created.
The test assembly under test
The optional diagnostic message sink to report diagnostic messages to
Prints the program header.
The console helper to use for output
Runs the given test project.
The test project assembly
The message sink to send messages to
The optional message sink to send diagnostic messages to
The runner logger, to log console output to
The pipeline startup object
An optional list of test case unique IDs to run
Returns 0 if there were no failures; non-zero failure count, otherwise
Extension methods for .
Writes a message to the console, and waits for acknowledge as appropriate.
The message to write
This class provides mappings from media types (stored in attachments) to the intended file system extension
when storing the attachment on disk.
Gets the file extension for the given media type. If the media type is unknown, it will return .bin.
The media type to get the file extension from
This list is pre-populated with media types from https://developer.mozilla.org/en-US/docs/Web/HTTP/MIME_types/Common_types.
On Windows, an unknown media type will attempt to find the file extension in the system registry, under
HKEY_CLASSES_ROOT\MIME\Database\Content Type; on non-Windows OSes, there is no fallback.
The pre-populated cache was last populated on 2025 February 5.
Specifies that null is allowed as an input even if the corresponding type disallows it.
Specifies that null is disallowed as an input even if the corresponding type allows it.
Specifies that an output may be null even if the corresponding type disallows it.
Specifies that an output will not be null even if the corresponding type allows it.
Specifies that when a method returns , the parameter may be null even if the corresponding type disallows it.
Initializes the attribute with the specified return value condition.
The return value condition. If the method returns this value, the associated parameter may be null.
Gets the return value condition.
Specifies that when a method returns , the parameter will not be null even if the corresponding type allows it.
Initializes the attribute with the specified return value condition.
The return value condition. If the method returns this value, the associated parameter will not be null.
Gets the return value condition.
Specifies that the output will be non-null if the named parameter is non-null.
Initializes the attribute with the associated parameter name.
The associated parameter name. The output will be non-null if the argument to the parameter specified is non-null.
Gets the associated parameter name.
Applied to a method that will never return under any circumstance.
Specifies that the method will not return if the associated Boolean parameter is passed the specified value.
Initializes the attribute with the specified parameter value.
The condition parameter value. Code after the method will be considered unreachable by diagnostics if the argument to
the associated parameter matches this value.
Gets the condition parameter value.
Specifies the syntax used in a string.
Initializes the with the identifier of the syntax used.
The syntax identifier.
Initializes the with the identifier of the syntax used.
The syntax identifier.
Optional arguments associated with the specific syntax employed.
Gets the identifier of the syntax used.
Optional arguments associated with the specific syntax employed.
The syntax identifier for strings containing composite formats for string formatting.
The syntax identifier for strings containing date format specifiers.
The syntax identifier for strings containing date and time format specifiers.
The syntax identifier for strings containing format specifiers.
The syntax identifier for strings containing format specifiers.
The syntax identifier for strings containing JavaScript Object Notation (JSON).
The syntax identifier for strings containing numeric format specifiers.
The syntax identifier for strings containing regular expressions.
The syntax identifier for strings containing time format specifiers.
The syntax identifier for strings containing format specifiers.
The syntax identifier for strings containing URIs.
The syntax identifier for strings containing XML.
Specifies the priority of a member in overload resolution. When unspecified, the default priority is 0.
Initializes a new instance of the class.
The priority of the attributed member. Higher numbers are prioritized, lower numbers are deprioritized. 0 is the default if no attribute is present.
The priority of the member.