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 wrapper around the Executor class from xUnit.net v1. Enumerates the tests in the assembly. The callback handler used to return information. Runs the tests in a class. The class to run. The methods in the class to run. The callback handler used to return information. Gets the display name of the test framework. A handler that dispatches v1 Executor messages from running a test class. An implementation of used to translate v1 Executor XML messages. Initializes a new instance of the class. The callback to call when each XML node arrives. The name of the expected final XML node, which triggers . Called when an XML node arrives. Dispatches the XML node to the callback. The arriving XML node. Return true to continue running tests; false to stop running tests. Gets the last node that was sent. Gets an event that is triggered when the last node has arrived. Initializes a new instance of the class. The test cases that are being run. The message sink to call with the translated results. Gets the test class results, after the execution has completed. This class be used to do discovery and execution of xUnit.net v1 tests using a reflection-based implementation of . Runner authors are strongly encouraged to use instead of using this class directly. 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). Initializes a new instance of the class. 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 Creates a wrapper to call the Executor call from xUnit.net v1. The filename of the assembly under test. The configuration file to be used for the app domain (optional, may be null). Whether to enable shadow copy for the app domain. The executor wrapper. 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 v1 tests in an assembly. Whether to include source file information, if possible. The message sink to report results back to. Starts the process of finding all xUnit.net v1 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. Starts the process of running all the xUnit.net v1 tests in the assembly. The message sink to report results back to. Starts the process of running all the xUnit.net v1 tests. The test cases to run; if null, all tests in the assembly are run. The message sink to report results back to. An implementation of for xUnit.net v1. Initializes a new instance of the class. The filename of the test assembly. Gets the filename of the test assembly. Default implementation of . Creates a remote app domain for the test assembly to be loaded into. Disposing of the executor releases the app domain. Initializes a new instance of the class. The filename of the test assembly. The filename of the configuration file. Set to true to enable shadow copying the assemblies. The path on disk to use for shadow copying; if null, a folder will be automatically (randomly) generated An implementation of , and for xUnit.net v1 tests. Initializes a new instance of the class. The assembly under test. The type under test. The method under test. Gets the name of the assembly under test. Gets the name of the method under test. Gets the name of the type under test. Gets the unique ID for the test. Collects statistics from running tests. A flag that indicates whether or not to continue running tests. The total number of tests run. The number of tests that failed. The number of tests that were skipped. The time spent running the tests. Aggregates the current results with the other results. The other result. Resets the counted results back to zero. An implementation of that adapts xUnit.net v1's XML-based APIs into xUnit.net v2's object-based APIs. Initializes a new instance of the class. The assembly under test. The configuration file name. The type under test. The method under test. The display name of the unit test. The traits of the unit test. The skip reason, if the test is skipped. An implementation of that will provide source information when running inside of Visual Studio (via the DiaSession class). Initializes a new instance of the class. The assembly file name. 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.