Thenamespace supplies classes that provide unit testing support. This namespace contains many attributes that identify test information to the test engine regarding data sources, order of method execution, program management, agent/host information, and deployment data. The namespace also contains custom unit testing exceptions.
Provides data for the AfterAssemblyCleanup event.
Provides data for the AfterAssemblyInitialize event.
Provides data for the AfterClassCleanup event.
Provides data for the AfterClassInitialize event.
Provides data for the AfterTestCleanup event.
Provides data for the AfterTestInitialize event.
Identifies a method that contains code to be used after all tests in the assembly have run and to free resources obtained by the assembly. This class cannot be inherited.
Identifies a method that contains code to be used before all tests in the assembly have run and to allocate resources obtained by the assembly. This class cannot be inherited.
Verifies conditions in unit tests using true/false propositions.
Used to indicate failure for a test.
Used to indicate that a test is not yet implemented.
This class is used by the publicize method to help test private types.
Provides data for the BeforeAssemblyCleanup event.
Provides data for the BeforeAssemblyInitialize event.
Provides data for the BeforeClassCleanup event.
Provides data for the BeforeClassInitialize event.
Provides data for the BeforeTestCleanup event.
Provides data for the BeforeTestInitialize event.
Identifies a method that contains code to be used after all the tests in the test class have run and to free resources obtained by the test class. This class cannot be inherited.
Identifies a method that contains code that must be used before any of the tests in the test class have run and to allocate resources to be used by the test class. This class cannot be inherited.
Verifies true/false propositions associated with collections in unit tests.
Represents the project iteration to which this test corresponds. This class cannot be inherited.
Represents the node in the team project hierarchy to which this test corresponds.
Provides data source-specific information for data-driven testing. This class cannot be inherited.
Represents a data source element as an XML tag within a configuration file.
Represents an XML element that contains a collection of child DataSourceElement objects.
Specify a file or directory that should be deployed along with the assemblies before running a test. Attach this attribute to a test class or test method. You can use multiple instances. This attribute is not inherited.
Used to specify the description of the test. This class cannot be inherited.
Indicates that an exception is expected during test method execution. This class cannot be inherited.
This is a base class for attributes that specify to expect an exception from a unit test.
This class is a placeholder for use with generics. It helps you test generic types by letting you pass non-specific type arguments.
Specifies the type of host on which the associated unit test will run. This class cannot be inherited.
Indicates that a specific test should not be run. This class cannot be inherited.
The exception that is thrown to indicate an internal failure for a test.
Occurs when a test is stopped before it is completed.
Used to specify the person responsible for maintaining, running, and/or debugging the test. This class cannot be inherited.
Used to specify the priority of a unit test. This class cannot be inherited.
Allows test code to call methods and properties on the code under test that would be inaccessible because they are not public.
Represents the type of a private class that gives access to private static implementations.
Do not use this class.
Verifies true/false propositions associated with strings in unit tests.
Class that is used to specify the category of a unit test.
Provides a base class for the Category attribute.
Used to identify classes that contain test methods. This class cannot be inherited.
Activates a class so that it is recognized as a Unit Test extension class.
Identifies a method that contains code that must be used after the test has run and to free resources obtained by all the tests in the test class. This class cannot be inherited.
Provides access to a TestConfigurationSection that represents the microsoft.visualstudio.testtools section in an app.config file.
Provides access to data source configuration data.
Used to store information that is provided to unit tests.
This class represents events that are related to test execution.
Base class for events in the TestExecution class.
This class enables the customized execution of tests.
Identifies the method to run before the test to allocate and configure resources needed by all tests in the test class. This class cannot be inherited.
Used to identify test methods. This class cannot be inherited.
Passed to the Unit Test Adapter to the TestExtensionExecution.CreateMethodInvoker.
The result that is returned by M:Microsoft.VisualStudio.TestTools.UnitTesting.ITestMethodInvoker.Invoke.
Establishes a test specific property on a method. This class cannot be inherited.
Used to specify the time-out period of a unit test.
This is the base class for unit test exceptions.
Contains helper methods for Web service testing.
Used to specify a work item associated with a test.
Delegate used for deep copying of arrays. Converts the source element of an array into the target element.
Specifies constants that indicate how data rows are accessed in data-driven testing.
Enumeration for time-outs that can be used with the TimeoutAttribute class.
Use UnitTestOutcome to programmatically determine the outcome of a test that has run or is currently running.