Microsoft.VisualStudio.TestTools.UnitTesting
TOC
Collapse the table of content
Expand the table of content

Microsoft.VisualStudio.TestTools.UnitTesting Namespace

 

The Microsoft.VisualStudio.TestTools.UnitTesting namespace 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 Microsoft.VisualStudio.TestTools.UnitTesting namespace also contains custom unit testing exceptions.

ClassDescription
System_CAPS_pubclassAfterAssemblyCleanupEventArgs

Provides data for the AfterAssemblyCleanup event.

System_CAPS_pubclassAfterAssemblyInitializeEventArgs

Provides data for the AfterAssemblyInitialize event.

System_CAPS_pubclassAfterClassCleanupEventArgs

Provides data for the AfterClassCleanup event.

System_CAPS_pubclassAfterClassInitializeEventArgs

Provides data for the AfterClassInitialize event.

System_CAPS_pubclassAfterTestCleanupEventArgs

Provides data for the AfterTestCleanup event.

System_CAPS_pubclassAfterTestInitializeEventArgs

Provides data for the AfterTestInitialize event.

System_CAPS_pubclassAssemblyCleanupAttribute

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.

System_CAPS_pubclassAssemblyInitializeAttribute

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.

System_CAPS_pubclassAssert

Verifies conditions in unit tests using true/false propositions.

System_CAPS_pubclassAssertFailedException

Used to indicate failure for a test.

System_CAPS_pubclassAssertInconclusiveException

Used to indicate that a test is not yet implemented.

System_CAPS_pubclassBaseShadow

This class is used by the publicize method to help test private types.

System_CAPS_pubclassBeforeAssemblyCleanupEventArgs

Provides data for the BeforeAssemblyCleanup event.

System_CAPS_pubclassBeforeAssemblyInitializeEventArgs

Provides data for the BeforeAssemblyInitialize event.

System_CAPS_pubclassBeforeClassCleanupEventArgs

Provides data for the BeforeClassCleanup event.

System_CAPS_pubclassBeforeClassInitializeEventArgs

Provides data for the BeforeClassInitialize event.

System_CAPS_pubclassBeforeTestCleanupEventArgs

Provides data for the BeforeTestCleanup event.

System_CAPS_pubclassBeforeTestInitializeEventArgs

Provides data for the BeforeTestInitialize event.

System_CAPS_pubclassClassCleanupAttribute

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.

System_CAPS_pubclassClassInitializeAttribute

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.

System_CAPS_pubclassCollectionAssert

Verifies true/false propositions associated with collections in unit tests.

System_CAPS_pubclassCssIterationAttribute

Represents the project iteration to which this test corresponds. This class cannot be inherited.

System_CAPS_pubclassCssProjectStructureAttribute

Represents the node in the team project hierarchy to which this test corresponds.

System_CAPS_pubclassDataSourceAttribute

Provides data source-specific information for data-driven testing. This class cannot be inherited.

System_CAPS_pubclassDataSourceElement

Represents a data source element as an XML tag within a configuration file.

System_CAPS_pubclassDataSourceElementCollection

Represents an XML element that contains a collection of child DataSourceElement objects.

System_CAPS_pubclassDeploymentItemAttribute

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.

System_CAPS_pubclassDescriptionAttribute

Used to specify the description of the test. This class cannot be inherited.

System_CAPS_pubclassExpectedExceptionAttribute

Indicates that an exception is expected during test method execution. This class cannot be inherited.

System_CAPS_pubclassExpectedExceptionBaseAttribute

This is a base class for attributes that specify to expect an exception from a unit test.

System_CAPS_pubclassGenericParameterHelper

This class is a placeholder for use with generics. It helps you test generic types by letting you pass non-specific type arguments.

System_CAPS_pubclassHostTypeAttribute

Specifies the type of host on which the associated unit test will run. This class cannot be inherited.

System_CAPS_pubclassIgnoreAttribute

Indicates that a specific test should not be run. This class cannot be inherited.

System_CAPS_pubclassInternalTestFailureException

The exception that is thrown to indicate an internal failure for a test.

System_CAPS_pubclassOnTestStoppingEventArgs

Occurs when a test is stopped before it is completed.

System_CAPS_pubclassOwnerAttribute

Used to specify the person responsible for maintaining, running, and/or debugging the test. This class cannot be inherited.

System_CAPS_pubclassPriorityAttribute

Used to specify the priority of a unit test. This class cannot be inherited.

System_CAPS_pubclassPrivateObject

Allows test code to call methods and properties on the code under test that would be inaccessible because they are not public.

System_CAPS_pubclassPrivateType

Represents the type of a private class that gives access to private static implementations.

System_CAPS_pubclassShadowingAttribute

Do not use this class.

System_CAPS_pubclassStringAssert

Verifies true/false propositions associated with strings in unit tests.

System_CAPS_pubclassTestCategoryAttribute

Class that is used to specify the category of a unit test.

System_CAPS_pubclassTestCategoryBaseAttribute

Provides a base class for the Category attribute.

System_CAPS_pubclassTestClassAttribute

Used to identify classes that contain test methods. This class cannot be inherited.

System_CAPS_pubclassTestClassExtensionAttribute

Activates a class so that it is recognized as a Unit Test extension class.

System_CAPS_pubclassTestCleanupAttribute

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.

System_CAPS_pubclassTestConfiguration

Provides access to a TestConfigurationSection that represents the microsoft.visualstudio.testtools section in an app.config file.

System_CAPS_pubclassTestConfigurationSection

Provides access to data source configuration data.

System_CAPS_pubclassTestContext

Used to store information that is provided to unit tests.

System_CAPS_pubclassTestExecution

This class represents events that are related to test execution.

System_CAPS_pubclassTestExecutionEventArgs

Base class for events in the TestExecution class.

System_CAPS_pubclassTestExtensionExecution

This class enables the customized execution of tests.

System_CAPS_pubclassTestInitializeAttribute

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.

System_CAPS_pubclassTestMethodAttribute

Used to identify test methods. This class cannot be inherited.

System_CAPS_pubclassTestMethodInvokerContext

Passed to the Unit Test Adapter to the TestExtensionExecution.CreateMethodInvoker.

System_CAPS_pubclassTestMethodInvokerResult
System_CAPS_pubclassTestPropertyAttribute

Establishes a test specific property on a method. This class cannot be inherited.

System_CAPS_pubclassTimeoutAttribute

Used to specify the time-out period of a unit test.

System_CAPS_pubclassUnitTestAssertException

This is the base class for unit test exceptions.

System_CAPS_pubclassWebServiceHelper

Contains helper methods for Web service testing.

System_CAPS_pubclassWorkItemAttribute

Used to specify a work item associated with a test.

InterfaceDescription
System_CAPS_pubinterfaceITestMethodInvoker

Interface to invoke the test method body.

DelegateDescription
System_CAPS_protdelegateBaseShadow.ElementConverter

Delegate used for deep copying of arrays. Converts the source element of an array into the target element.

EnumerationDescription
System_CAPS_pubenumDataAccessMethod

Specifies constants that indicate how data rows are accessed in data-driven testing.

System_CAPS_pubenumTestTimeout

Enumeration for time-outs that can be used with the TimeoutAttribute class.

System_CAPS_pubenumUnitTestOutcome

Use UnitTestOutcome to programmatically determine the outcome of a test that has run or is currently running.

Return to top
Show:
© 2016 Microsoft