Microsoft.VisualStudio.TestTools.UnitTesting Namespace (original) (raw)


Share via


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.
ConditionBaseAttribute This attribute is used to conditionally control whether a test class or a test method will run or be ignored, based on a condition and using an optional message.
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: public default constructor implements common interface: IComparable, IEnumerable.
GitHubWorkItemAttribute GitHubWorkItem attribute; used to specify a GitHub issue associated with this test.
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
OSConditionAttribute This attribute is used to ignore a test class or a test method, with an optional message.
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.
RetryAttribute This attribute is used to set a retry count on a test method in case of failure.
RetryBaseAttribute An abstract attribute that controls retrying a test method if it failed. It's up to the derived classes to define how the retry is done.
RetryResult The result of a test retry.
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.
TestDataRow When this type is returned from GetData(MethodInfo) (for example, through DynamicDataAttribute), it determines information related to the specific test case.
TestDataSourceDiscoveryAttribute Specifies how to discover ITestDataSource 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.

Structs

Assert.AssertAreEqualInterpolatedStringHandler
Assert.AssertAreNotEqualInterpolatedStringHandler
Assert.AssertAreNotSameInterpolatedStringHandler
Assert.AssertAreSameInterpolatedStringHandler
Assert.AssertCountInterpolatedStringHandler
Assert.AssertGenericIsInstanceOfTypeInterpolatedStringHandler
Assert.AssertGenericIsNotInstanceOfTypeInterpolatedStringHandler
Assert.AssertIsFalseInterpolatedStringHandler
Assert.AssertIsInstanceOfTypeInterpolatedStringHandler
Assert.AssertIsNotEmptyInterpolatedStringHandler
Assert.AssertIsNotInstanceOfTypeInterpolatedStringHandler
Assert.AssertIsNotNullInterpolatedStringHandler
Assert.AssertIsNullInterpolatedStringHandler
Assert.AssertIsTrueInterpolatedStringHandler
Assert.AssertNonGenericAreEqualInterpolatedStringHandler
Assert.AssertNonGenericAreNotEqualInterpolatedStringHandler
Assert.AssertNonStrictThrowsInterpolatedStringHandler
Assert.AssertSingleInterpolatedStringHandler
Assert.AssertThrowsExactlyInterpolatedStringHandler
RetryContext Represents the context for a test retry.

Interfaces

Enums

ClassCleanupBehavior When to run ClassCleanup during test execution.
ConditionMode An enumeration used with ConditionBaseAttribute to control whether the condition is reversed.
DataAccessMethod Enumeration for how we access data rows in data driven testing.
DelayBackoffType Specifies a backoff type for the delay between retries.
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.
MessageLevel Specifies the severity level of messages displayed using the DisplayMessage(MessageLevel, String) API.
OperatingSystems An enum that is used with OSConditionAttribute to control which operating systems a test method or test class supports or doesn't support.
TestDataSourceDiscoveryOption The supported discovery modes for ITestDataSource tests.
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