Microsoft.VisualStudio.TestTools.UnitTesting Namespace
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Classes
AfterAssemblyCleanupEventArgs | |
AfterAssemblyInitializeEventArgs | |
AfterClassCleanupEventArgs | |
AfterClassInitializeEventArgs | |
AfterTestCleanupEventArgs | |
AfterTestInitializeEventArgs | |
AssemblyCleanupAttribute |
The assembly cleanup attribute. |
AssemblyInitializeAttribute |
The assembly initialize attribute. |
Assert |
A collection of helper classes to test various conditions within unit tests. If the condition being tested is not met, an exception is thrown. |
AssertFailedException |
AssertFailedException class. Used to indicate failure for a test case. |
AssertInconclusiveException |
The assert inconclusive exception. |
BaseShadow | |
BeforeAssemblyCleanupEventArgs | |
BeforeAssemblyInitializeEventArgs | |
BeforeClassCleanupEventArgs | |
BeforeClassInitializeEventArgs | |
BeforeTestCleanupEventArgs | |
BeforeTestInitializeEventArgs | |
ClassCleanupAttribute |
The class cleanup attribute. |
ClassCleanupExecutionAttribute |
Specification for when to run class cleanup methods. |
ClassInitializeAttribute |
The class initialize attribute. |
CollectionAssert |
A collection of helper classes to test various conditions associated with collections within unit tests. If the condition being tested is not met, an exception is thrown. |
CssIterationAttribute |
CSS Iteration URI. |
CssProjectStructureAttribute |
CSS Project Structure URI. |
DataRowAttribute |
Attribute to define in-line data for a test method. |
DataSourceAttribute |
Specifies connection string, table name and row access method for data driven testing. |
DataSourceElement |
The Data Source element. |
DataSourceElementCollection |
The Data source element collection. |
DataTestMethodAttribute |
This attribute doesn't currently provide any different functionality compared to TestMethodAttribute. It's only present for backward compatibility. Using TestMethodAttribute is recommended, even for parameterized tests. |
DeploymentItemAttribute |
Used to specify deployment item (file or directory) for per-test deployment. Can be specified on test class or test method. Can have multiple instances of the attribute to specify more than one item. The item path can be absolute or relative, if relative, it is relative to RunConfig.RelativePathRoot. |
DescriptionAttribute |
Description of the test. |
DiscoverInternalsAttribute |
The presence of this attribute in a test assembly causes MSTest to discover test classes (i.e. classes having the "TestClass" attribute) and test methods (i.e. methods having the "TestMethod" attribute) which are declared internal in addition to test classes and test methods which are declared public. When this attribute is not present in a test assembly the tests in such classes will not be discovered. |
DoNotParallelizeAttribute |
Specification to disable parallelization. |
DynamicDataAttribute |
Attribute to define dynamic data for a test method. |
ExpectedExceptionAttribute |
Attribute that specifies to expect an exception of the specified type. |
ExpectedExceptionBaseAttribute |
Base class for attributes that specify to expect an exception from a unit test. |
GenericParameterHelper |
This class is designed to help user doing unit testing for types which uses generic types. GenericParameterHelper satisfies some common generic type constraints such as:
|
HostTypeAttribute | |
IgnoreAttribute |
This attribute is used to ignore a test class or a test method, with an optional message. |
InternalTestFailureException |
InternalTestFailureException class. Used to indicate internal failure for a test case. |
OnTestStoppingEventArgs | |
OwnerAttribute |
Test Owner. |
ParallelizeAttribute |
Specification for parallelization level for a test run. |
PriorityAttribute |
Priority attribute; used to specify the priority of a unit test. |
PrivateObject |
This class represents the live NON public INTERNAL object in the system |
PrivateType |
This class represents a private class for the Private Accessors functionality. |
ShadowingAttribute | |
STATestClassAttribute |
The test class attribute. |
STATestMethodAttribute |
The test class attribute. |
StringAssert |
The string assert. |
TestCategoryAttribute |
TestCategory attribute; used to specify the category of a unit test. |
TestCategoryBaseAttribute |
Base class for the "Category" attribute. |
TestClassAttribute |
This attribute is used to mark test classes. |
TestClassExtensionAttribute | |
TestCleanupAttribute |
The test cleanup attribute marks methods that are executed after every test marked with a TestMethodAttribute. |
TestConfiguration |
Support for configuration settings for Tests. |
TestConfigurationSection |
The configuration section for tests. |
TestContext |
Used to store information that is provided to unit tests. |
TestDataSourceOptionsAttribute |
Specifies options for all ITestDataSource of the current assembly. |
TestExecution | |
TestExecutionEventArgs | |
TestExtensionExecution | |
TestIdGenerationStrategyAttribute |
Specifies how to generate test ID. |
TestInitializeAttribute |
The test initialize attribute. |
TestMethodAttribute |
This attribute is used to mark test methods. |
TestMethodInvokerContext | |
TestMethodInvokerResult | |
TestPropertyAttribute |
The test property attribute. |
TimeoutAttribute |
Timeout attribute; used to specify the timeout of a unit test. |
UnitTestAssertException |
Base class for Framework Exceptions. |
WebServiceHelper | |
WorkItemAttribute |
WorkItem attribute; used to specify a work item associated with this test. |
Interfaces
ITestDataSource |
Test data source for data driven tests. |
ITestDataSourceUnfoldingCapability |
Specifies the capability of a test data source to define how parameterized tests should be executed, either as individual test cases for each data row or as a single test case. This affects the test results and the UI representation of the tests. |
ITestMethod |
TestMethod for execution. |
ITestMethodInvoker |
Enums
ClassCleanupBehavior |
When to run ClassCleanup during test execution. |
DataAccessMethod |
Enumeration for how we access data rows in data driven testing. |
DynamicDataSourceType |
Enum to specify whether the data is stored as property or in method. |
ExecutionScope |
Parallel execution mode. |
InheritanceBehavior |
Enumeration for inheritance behavior, that can be used with both the ClassInitializeAttribute class and ClassCleanupAttribute class. Defines the behavior of the ClassInitialize and ClassCleanup methods of base classes. The type of the enumeration must match. |
TestDataSourceUnfoldingStrategy |
Specifies how parameterized tests should be executed, either as individual test cases for each data row or as a single test case. This affects the test results and the UI representation of the tests. |
TestIdGenerationStrategy |
The supported test ID generation strategies. |
TestTimeout |
Enumeration for timeouts, that can be used with the TimeoutAttribute class. The type of the enumeration must match. |
UnitTestOutcome |
unit test outcomes. |
Delegates
BaseShadow.ElementConverter |