xunit.runner.utility
Rethrows an exception object without losing the existing stack trace information
The exception to re-throw.
For more information on this technique, see
http://www.dotnetjunkies.com/WebLog/chris.taylor/archive/2004/03/03/8353.aspx.
The remote_stack_trace string is here to support Mono.
Unwraps an exception to remove any wrappers, like .
The exception to unwrap.
The unwrapped exception.
Guard class, used for guard clauses and argument validation
Default implementation of .
This class inherits from and reimplements
InitializeLifetimeService in a way that allows the object to live
longer than the remoting default lifetime (5 minutes).
Initializes a new instance of the class.
An implementation of that provides several Visit methods that
can provide access to specific message types without the burden of casting. It also record
when it sees a completion message, and sets the event appropriately.
The type of the completion message.
An implementation of that provides several Visit methods that
can provide access to specific message types without the burden of casting.
Called when an instance of is sent to the message sink.
The message.
Return true to continue executing tests; false otherwise.
Called when an instance of is sent to the message sink.
The message.
Return true to continue executing tests; false otherwise.
Called when an instance of is sent to the message sink.
The message.
Return true to continue executing tests; false otherwise.
Called when an instance of is sent to the message sink.
The message.
Return true to continue executing tests; false otherwise.
Called when an instance of is sent to the message sink.
The message.
Return true to continue discovering tests; false otherwise.
Called when an instance of is sent to the message sink.
The message.
Return true to continue executing tests; false otherwise.
Called when an instance of is sent to the message sink.
The message.
Return true to continue executing tests; false otherwise.
Called when an instance of is sent to the message sink.
The message.
Return true to continue executing tests; false otherwise.
Called when an instance of is sent to the message sink.
The message.
Return true to continue discovering tests; false otherwise.
Called when an instance of is sent to the message sink.
The message.
Return true to continue executing tests; false otherwise.
Called when an instance of is sent to the message sink.
The message.
Return true to continue executing tests; false otherwise.
Called when an instance of is sent to the message sink.
The message.
Return true to continue executing tests; false otherwise.
Called when an instance of is sent to the message sink.
The message.
Return true to continue executing tests; false otherwise.
Called when an instance of is sent to the message sink.
The message.
Return true to continue executing tests; false otherwise.
Called when an instance of is sent to the message sink.
The message.
Return true to continue executing tests; false otherwise.
Called when an instance of is sent to the message sink.
The message.
Return true to continue executing tests; false otherwise.
Called when an instance of is sent to the message sink.
The message.
Return true to continue executing tests; false otherwise.
Called when an instance of is sent to the message sink.
The message.
Return true to continue executing tests; false otherwise.
Called when an instance of is sent to the message sink.
The message.
Return true to continue executing tests; false otherwise.
Called when an instance of is sent to the message sink.
The message.
Return true to continue executing tests; false otherwise.
Called when an instance of is sent to the message sink.
The message.
Return true to continue executing tests; false otherwise.
Called when an instance of is sent to the message sink.
The message.
Return true to continue executing tests; false otherwise.
Called when an instance of is sent to the message sink.
The message.
Return true to continue executing tests; false otherwise.
Called when an instance of is sent to the message sink.
The message.
Return true to continue executing tests; false otherwise.
Called when an instance of is sent to the message sink.
The message.
Return true to continue executing tests; false otherwise.
Called when an instance of is sent to the message sink.
The message.
Return true to continue executing tests; false otherwise.
Initializes a new instance of the class.
This event is trigged when the completion message has been seen.
Represents a class which acts as a front controller for unit testing frameworks.
This allows runners to run tests from multiple unit testing frameworks (in particular,
hiding the differences between xUnit.net v1 and v2 tests).
An implementation of that always returns no
source information. Useful for test runners which don't need or cannot provide source
information during discovery.
Represents options passed to a test framework for discovery or execution.
Gets a value from the options collection.
The type of the value.
The name of the value.
The default value to use if the value is not present.
Returns the value.
Sets a value into the options collection.
The type of the value.
The name of the value.
The value.
This class be used to do discovery and execution of xUnit.net v2 tests
using a reflection-based implementation of .
This class be used to do discovery of xUnit.net v2 tests, via any implementation
of , including AST-based runners like CodeRush and
Resharper. Runner authors who are not using AST-based discovery are strongly
encouraged to use instead.
Initializes a new instance of the class.
The source code information provider.
The assembly to use for discovery
The path on disk of xunit.execution.dll; if null, then
the location of xunit.execution.dll is implied based on the location of the test assembly
The path on disk to use for shadow copying; if null, a folder
will be automatically (randomly) generated
Starts the process of finding all xUnit.net v2 tests in an assembly.
Whether to include source file information, if possible.
The message sink to report results back to.
The options used by the test framework during discovery.
Starts the process of finding all xUnit.net v2 tests in a class.
The fully qualified type name to find tests in.
Whether to include source file information, if possible.
The message sink to report results back to.
The options used by the test framework during discovery.
Returns the test framework from the remote app domain.
Initializes a new instance of the class.
The source code information provider.
The test assembly.
The test assembly configuration file.
If set to true, runs tests in a shadow copied app domain, which allows
tests to be discovered and run without locking assembly files on disk.
The path on disk to use for shadow copying; if null, a folder
will be automatically (randomly) generated
Starts the process of running all the xUnit.net v2 tests in the assembly.
The message sink to report results back to.
The options to be used during test discovery.
The options to be used during test execution.
Starts the process of running the selected xUnit.net v2 tests.
The test cases to run; if null, all tests in the assembly are run.
The message sink to report results back to.
The options to be used during test execution.
Represents discovery options for xUnit.net v2 tests.
Represents execution options for xUnit.net v2 tests.
Gets or sets a flag that determines whether xUnit.net should report test results synchronously.
Gets or sets a flag to disable parallelization.
Gets or 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.
Default implementation of which supports running tests from
both xUnit.net v1 and v2.
This constructor is for unit testing purposes only.
Initializes a new instance of the class.
The test assembly.
The test assembly configuration file.
If set to true, runs tests in a shadow copied app domain, which allows
The path on disk to use for shadow copying; if null, a folder
will be automatically (randomly) generated
The source information provider. If null, uses the default ().
tests to be discovered and run without locking assembly files on disk.
FOR INTERNAL USE ONLY.
Represents a set of filters for an .
Initializes a new instance of the class.
Filters the given method using the defined filter values.
The test case to filter.
Returns true if the test case passed the filter; returns false otherwise.
Gets the set of trait filters for tests to exclude.
Gets the set of trait filters for tests to include.
FOR INTERNAL USE ONLY.
Represents an assembly in an .
Initializes a new instance of the class.
Gets or sets the assembly filename.
Gets or sets the config filename.
Gets or sets a value indicating whether to shadow copy the assembly
when running the tests.
This class provides assistance with assembly resolution for missing assemblies. Runners may
need to use to help automatically resolve missing assemblies
when running tests.
Subscribes to the current event, to
provide automatic assembly resolution for assemblies in the runner.
An object which, when disposed, un-subscribes.
Utility classes for dealing with Exception objects.
Combines multiple levels of messages into a single message.
The failure information from which to get the messages.
The combined string.
Combines multiple levels of stack traces into a single stack trace.
The failure information from which to get the stack traces.
The combined string.
Collects execution totals for a group of test cases.
Gets or set the total number of tests run.
Gets or sets the number of failed tests.
Gets or sets the number of skipped tests.
Gets or sets the total execution time for the tests.
Internal helper class for remoting.
Unregisters any remoting channels.
If there are any registered remoting channels, then MarshalByRefObjects
don't work. Based on bug #9749, it's clear that MSTest (at least through
Visual Studio 2010) registers remoting channels when it runs but doesn't
clean them up when it's done. Right now, the only way to reliably surface
this issue is through MSBuild (as per the bug repro), so for the moment
this work-around code is limited to the MSBuild runner.
Default implementation of .
Default implementation of .
Default implementation of .
Default implementation of .
Default implementation of .
Default implementation of .
Default implementation of and .
Initializes a new instance of the class.
Initializes a new instance of the class.
Initializes a new instance of the class.
Initializes a new instance of the class.
Initializes a new instance of the class.
Initializes a new instance of the class.
Initializes a new instance of the class.
Default implementation of .
Initializes a new instance of the class.
Default implementation of .
Initializes a new instance of the class.
Default implementation of .
Initializes a new instance of the class.
Default implementation of .
Initializes a new instance of the class.
Default implementation of .
Initializes a new instance of the class.
Default implementation of .
Initializes a new instance of the class.
Default implementation of .
Initializes a new instance of the class.
Default implementation of .
Initializes a new instance of the class.
Default implementation of .
Initializes a new instance of the class.
Default implementation of .
Initializes a new instance of the class.
Default implementation of .
Initializes a new instance of the class.
Default implementation of .
Initializes a new instance of the class.
Default implementation of .
Initializes a new instance of the class.
Default implementation of .
Initializes a new instance of the class.
Default implementation of .
Initializes a new instance of the class.
Default implementation of .
Initializes a new instance of the class.
Default implementation of .
Initializes a new instance of the class.
Default implementation of .
Initializes a new instance of the class.
Default implementation of .
Initializes a new instance of the class.
Default implementation of .
Initializes a new instance of the class.
Default implementation of .
Initializes a new instance of the class.
Default implementation of .
Initializes a new instance of the class.
Default implementation of .
Initializes a new instance of the class.
Default implementation of .
Initializes a new instance of the class.
Default implementation of .
Initializes a new instance of the class.
Default implementation of .
Initializes a new instance of the class.
Default implementation of .
Initializes a new instance of the class.
Default implementation of .
Initializes a new instance of the class.
Default implementation of .
Initializes a new instance of the class.
Default implementation of .
Initializes a new instance of the class.
Default implementation of .
Initializes a new instance of the class.
Default implementation of .
Initializes a new instance of the class.