xunit.runner.utility Guard class, used for guard clauses and argument validation Wraps calls to the Executor. Used by runners to perform version-resilient test enumeration and execution. Wraps calls to the Executor. Used by runners to perform version-resilient test enumeration and execution. Enumerates the tests in an assembly. The fully-formed assembly node of the XML Gets a count of the tests in the assembly. Returns the number of tests, if known; returns -1 if not known. May not represent an exact count, but should be a best effort guess by the framework. Runs all the tests in an assembly. The callback which is called as each test/class/assembly is finished, providing XML nodes that are part of the xUnit.net XML output format. Test runs can be cancelled by returning false to the callback. If null, there are no status callbacks (and cancellation isn't possible). Returns the fully-formed assembly node for the assembly that was just run. Runs all the tests in the given class. The type. The callback which is called as each test/class is finished, providing XML nodes that are part of the xUnit.net XML output format. Test runs can be cancelled by returning false to the callback. If null, there are no status callbacks (and cancellation isn't possible). Returns the fully-formed class node for the class that was just run. Runs a single test in a class. The type to run. The method to run. The callback which is called as each test/class is finished, providing XML nodes that are part of the xUnit.net XML output format. Test runs can be cancelled by returning false to the callback. If null, there are no status callbacks (and cancellation isn't possible). Returns the fully-formed class node for the class of the test that was just run. Runs several tests in a single class. The type. The methods to run. The callback which is called as each test/class is finished, providing XML nodes that are part of the xUnit.net XML output format. Test runs can be cancelled by returning false to the callback. If null, there are no status callbacks (and cancellation isn't possible). Returns the fully-formed class node for the class of the tests that were just run. Gets the full pathname to the assembly under test. Gets the full pathname to the configuration file. Gets the version of xunit.dll used by the test assembly. Initializes the class. Initializes a new instance of the class. The assembly filename. The config filename. If null, the default config filename will be used. Set to true to enable shadow copying; false, otherwise. Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources. THIS CLASS IS FOR INTERNAL USE ONLY. THIS CLASS IS FOR INTERNAL USE ONLY. THIS CLASS IS FOR INTERNAL USE ONLY. THIS CLASS IS FOR INTERNAL USE ONLY. THIS CLASS IS FOR INTERNAL USE ONLY. THIS CLASS IS FOR INTERNAL USE ONLY. THIS CLASS IS FOR INTERNAL USE ONLY. The callback object which receives real-time status notifications from the test runner. Called when the assembly has finished running. The test assembly. The total number of tests run. The number of failed tests. The number of skipped tests. The time taken to run, in seconds. Called when the assembly has started running. The test assembly. Called when a class failure is encountered (i.e., when a fixture from IUseFixture throws an exception during construction or . The test class. The full type name of the exception. The exception message. The exception stack trace. Called when an exception is thrown (i.e., a catastrophic failure of the testing system). The test assembly. The exception that was thrown. Called when a test has finished running, regardless of what the result was. The test method. Return true to continue running tests; return false to stop the test run. Called when a test has started running. The test method. Return true to continue running tests; return false to stop the test run. Represents the ability to load and unload test assemblies, as well as enumerate the test assemblies, the test methods, and run tests. Represents the ability to enumerate and filter test methods. Enumerates all test methods. Enumerates test methods which pass the given filter. The test method filter. The test assemblies loaded into the environment. Enumerates the test assemblies in the environment. Enumerates the traits across all the loaded assemblies. Loads the specified assembly, using the default configuration file. The assembly filename. The which represents the newly loaded test assembly. Loads the specified assembly using the specified configuration file. The assembly filename. The config filename. The which represents the newly loaded test assembly. Loads the specified assembly using the specified configuration file. The assembly filename. The config filename. Whether the DLLs should be shadow copied. The which represents the newly loaded test assembly. Adds the assembly loaded into the given into the environment. The executor wrapper. The which represents the newly loaded test assembly. Runs the specified test methods. The test methods to run. The run status information callback. Returns the result as XML. Unloads the specified assembly. The assembly to unload. Represents a failed test run in the object model. Base class for all test results in the object model. Initializes a new instance of the class. The duration the test took to run. For skipped tests, should be 0.0. The display name of the test result. Gets the display name of the test result. Gets the duration the test took to run. Initializes a new instance of the class. The duration the test took to run. The display name of the test result. The output that was captured during the test run. Type of the exception. The exception message. The exception stack trace. Gets the output that was captured during the test run. Gets the type of the exception. Gets the exception message. Gets the exception stack trace. Represents a skipped test run in the object model. Initializes a new instance of the class. The display name of the test result. The skip reason. Gets the skip reason. Acts as an and adapts the callback messages into calls to an instance of . Represents a logger used by and . Called when the assembly has finished running. The assembly filename. The total number of tests run. The number of failed tests. The number of skipped tests. The time taken to run, in seconds. Called when the assembly has started running. The assembly filename. The configuration filename, if given; null, otherwise. The version of xunit.dll. Called when a class failure is encountered (i.e., when a fixture from IUseFixture throws an exception during construction or . The full type name of the class. The full type name of the exception. The exception message. The exception stack trace. Called when an exception is thrown (i.e., a catastrophic failure of the testing system). The assembly filename. The exception that was thrown. Called when a test fails. The description name of the test. The full type name of the test class. The name of the method. The time spent running the test, in seconds. The output of the test during its run. The full type name of the exception. The exception message. The exception stack trace. Called when a test has finished running, regardless of what the result was. The description name of the test. The full type name of the test class. The name of the method. Return true to continue running tests; return false to stop the test run. Called when a test has passed. The description name of the test. The full type name of the test class. The name of the method. The time spent running the test, in seconds. The output of the test during its run. Called when a test was finished. The description name of the test. The full type name of the test class. The name of the method. The skip reason. Called when a test has started running. The description name of the test. The full type name of the test class. The name of the method. Return true to continue running tests; return false to stop the test run. Initializes a new instance of the class. The test class. The run status information callback. Represents a passed test run in the object model. Initializes a new instance of the class. The duration the test took to run. The display name of the test result. The output that was captured during the test run. Gets the output that was captured during the test run. Indicates the composite test method status The method has not been run All test results for the last run passed At least one test result for the last run failed At least one test result for the last run was skipped, and none failed Represents a set of filters for an . Initializes a new instance of the class. Filters the given method using the defined filter values. The methods to filter. Returns true if the method passed the filter; return false otherwise. Gets the set of trait filters for tests to exclude. Gets the set of trait filters for tests to include. Represents an xUnit Test Project file (.xunit file) Initializes a new instance of the class. Adds an assembly to the project The assembly to be added Loads an xUnit.net Test Project file from disk. The test project filename Removes assembly from the assembly list The assembly to be removed Saves the xUnit.net Test Project file to disk using the project's filename. Saves the xUnit.net Test Project file to disk using the provided filename. The projects filename is updated to match this new name. The test project filename Gets or sets the assemblies in the project. Gets or set the filename of the project. Gets the filters applied to this project. Gets or sets a flag which indicates if this project has been modified since the last time it was loaded or saved. 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. The xUnit.net GUI runner does not support this field. Gets or sets the output filenames. The dictionary key is the type of the file to be output; the dictionary value is the filename to write the output to. The xUnit.net GUI runner does not support this field. The MSBuild runner only supports output of type 'xml', 'html', and 'nunit'. Interface which represents a high level test runner. Executes the tests in the assembly. Returns true if there were no failures; return false otherwise. Executes the tests in the assembly, and then executes the transforms with the resulting assembly XML. The transforms to execute. Returns true if there were no failures; return false otherwise. Runs the class. The type. Runs a single test in a test class. The full name of the class. The name of the method. Runs the list of tests in a test class. The full name of the class. The names of the methods to run. Represents a single test assembly with test classes. Initializes a new instance of the class. The executor wrapper. The test classes. Enumerates the test classes in the assembly. Runs the specified test methods. The test methods to run. The run status information callback. Returns the result as XML. Gets the assembly filename. Gets the config filename. Gets the executor wrapper. Gets the version of xunit.dll that the tests are linked against. Represents a single class with test methods. Initializes a new instance of the class. The namespace-qualified type name that this class represents. The test methods inside this test class. Runs the specified test methods. The test methods to run. The run status information callback. Returns the result as XML. Runs the specified tests in the given type, calling the callback as appropriate. This override point exists primarily for unit testing purposes. The test methods to run The run status information callback. Gets the test assembly that this class belongs to. Gets the namespace-qualified type name of this class. Represents a single test method. Initializes a new instance of the class. The method name. The method's display name. The method's traits. Gets the method's display name. Gets the method's name. Gets the run results for the last run. Gets the composite run status for all the results of the last run. Gets the test class this test method belongs to. Gets the method's traits. The result of a test run via . All tests passed, with no class-level failures At least one test failed, or there was a class-level failure There were no tests to run Represents a transformation of the resulting assembly XML into some output format. Transforms the given assembly XML into the destination format. The assembly XML. Gets the output filename, if known; returns null if the output isn't done to file. Runs tests in an assembly, and transforms the XML results into calls to the provided . Initializes a new instance of the class. The executor wrapper. The logger. An implementation of which writes the XML to a file without any transformation applied. Initializes a new instance of the class. The output filename. An implementation of which writes the XML to a file after applying the XSL stylesheet in the given stream. Initializes a new instance of the class. The XSL filename. The output filename. Initializes a new instance of the class. The stream with the XSL stylesheet. The output filename. Gets or sets the XSL filename. Gets or sets the XSL stream. A dictionary which contains multiple unique values for each key. The type of the key. The type of the value. Adds the value for the given key. If the key does not exist in the dictionary yet, it will add it. The key. The value. Removes all keys and values from the dictionary. Determines whether the dictionary contains to specified key and value. The key. The value. Calls the delegate once for each key/value pair in the dictionary. Removes the given key and all of its values. Removes the given value from the given key. If this was the last value for the key, then the key is removed as well. The key. The value. Gets the values for the given key. Gets the count of the keys in the dictionary. Gets the keys. Responsible for building instances. Uses an instance of to interrogate the list of available tests and create the entire object model tree. Creates a which is a complete object model over the tests inside of instance of . The executor wrapper The fully populated object model Parses the XML nodes from the version resilient runner facility and converts them into calls against the provided . Logs a result XML node. Maybe be any kind of XML node. The node to be logged. The logger. Returns true if the user wishes to continue running tests; returns false otherwise. Logs the assembly node by calling . The assembly node. The logger. Logs the class node by calling (if the class failed). The exception type was added in xUnit.net 1.1, so when the test assembly is linked against xUnit.net versions prior to 1.1, the exception type will be null. The class node. The logger. Returns true if the user wishes to continue running tests; returns false otherwise. Logs the start node by calling . The start node was added in xUnit.net 1.1, so it will only be present when the test assembly is linked against xunit.dll version 1.1 or later. The start node. The logger. Returns true if the user wishes to continue running tests; returns false otherwise. Logs the test node by calling . It will also call , , or as appropriate. The test node. The logger. Returns true if the user wishes to continue running tests; returns false otherwise.