http://msdn.microsoft.com/en-us/library/microsoft.visualstudio.testtools.unittesting%28VS.80%29.aspx
| Class | Description | |
|---|---|---|
![]() |
TestConfiguration | Provides access to a TestConfigurationSection that represents the microsoft.visualstudio.testtools section in an app.config file. |
|
TestConfigurationSection | Provides access to data source configuration data. |
|
TestsContext | Used to store information that is provided to unit tests. |
| Class | Description | |
|---|---|---|
![]() |
Private Object | Allows test code to call methods and properties on the code under test that would be inaccessible because they are not public. Automatically generated by the framework. |
![]() |
PrivateType | Represents the type of a private class that gives access to private static implementations. |
| th style="BORDER-RIGHT-STYLE:none;TEXT-ALIGN:left">Class | Description | |
|---|---|---|
![]() |
Assert | Verifies conditions in unit tests using true/false propositions. |
|
CollectionAssert | Verifies true/false propositions associated with collections in unit tests. |
![]() |
StringAssert | Verifies true/false propositions associated with strings in unit tests. |
| Class | Description | |
|---|---|---|
![]() |
AssertInconclusiveException | Used to indicate that a test is not yet implemented. |
![]() |
AssertFailedException | Used to indicate failure for a test. |
![]() |
UnitTestAssertException | This is the base class for unit test exceptions. |
![]() |
InternalTestFailureException | The exception that is thrown to indicate an internal failure for a test. |
| Class | Description | |
|---|---|---|
![]() |
TestClassAttribute | Used to identify classes that contain test methods. This class cannot be inherited. |
![]() |
TestMethodAttribute | Used to identify test methods. This class cannot be inherited. |
| Class | Description | |
|---|---|---|
![]() | AssemblyInitializeAttribute | 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. |
![]() | ClassInitializeAttribute | 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. |
![]() | TestInitializeAttribute | 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. |
| Class | Description | |
|---|---|---|
![]() | AssemblyCleanupAttribute | 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. |
![]() | ClassCleanupAttribute | 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. |
![]() | TestCleanupAttribute | 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. |
| Class | Description | |
|---|---|---|
![]() | ExpectedExceptionAttribute | Indicates that an exception is expected during test method execution. This class cannot be inherited. E.g. [ExpectedException(typeof(System.DividedByZeroException)] |
![]() | IgnoreAttribute | Indicates that a specific test should not be run. This class cannot be inherited. [Ignore()] (the test will be greyed out). |
![]() | TimeoutAttribute | Used to specify the time-out period of a unit test in milliseconds. |
![]() | DescriptionAttribute | Used to specify the description of the test. This class cannot be inherited. e.g. [Description("test")] |
![]() | DataSourceAttribute | Provides data source-specific information for data-driven testing. This class cannot be inherited. Examples are: [DataSource("Provider=SQLOLEDB.1;Data Source=MySource;Integrated] Security=SSPI;Initial Catalog=MyCatalog;Persist Security Info=False", "MyTable")] [DataSource("dataSourceNameFromConfigFile")] |
![]() | TestPropertyAttribute | Establishes a test specific property on a method. This class cannot be inherited. e.g. [TestProperty("Name", "value"] |
| Class | Description | |
|---|---|---|
![]() | CssIterationAttribute | Represents the project iteration to which this test corresponds. This class cannot be inherited. |
![]() | CssProjectStructureAttribute | Represents the node in the team project hierarchy to which this test corresponds. |
![]() | DeploymentItemAttribute | Used to specify deployment items such as files or directories for per-test deployment. This class cannot be inherited. Used for create Test Deployment. |
![]() | HostTypeAttribute | Used to specify the type of host that this unit test will run in. This class cannot be inherited. Currently only one type type, i.e. [HostType("ASP.NET")] |
![]() | OwnerAttribute | Used to specify the person responsible for maintaining, running, and/or debugging the test. This class cannot be inherited. |
![]() | PriorityAttribute | Used to specify the priority of a unit test. This class cannot be inherited. |
![]() | WorkItemAttribute | Used to specify a work item associated with a test. |
| Name | Description | |
|---|---|---|
![]() ![]() | AreEqual | Overloaded. Verifies that specified values are equal. |
![]() ![]() | AreNotEqual | Overloaded. Verifies that specified values are not equal. |
![]() ![]() | AreNotSame | Overloaded. Verifies that specified object variables refer to different objects. |
![]() ![]() | AreSame | Overloaded. Verifies that specified object variables refer to the same object. |
![]() ![]() | Fail | Overloaded. Fails an assertion without checking any conditions. |
![]() ![]() | Inconclusive | Overloaded. Indicates that an assertion cannot be proven true or false. Also used to indicate an assertion that has not yet been implemented. |
![]() ![]() | IsFalse | Overloaded. Verifies that a specified condition is false. |
![]() ![]() | IsInstanceOfType | Overloaded. Verifies that a specified object is an instance of a specified type. |
![]() ![]() | IsNotInstanceOfType | Overloaded. Verifies that a specified object is not an instance of a specified type. |
![]() ![]() | IsNotNull | Overloaded. Verifies that a specified object is not a null reference (Nothing in Visual Basic). |
![]() ![]() | IsNull | Overloaded. Verifies that a specified object is null. |
![]() ![]() | IsTrue | Overloaded. Verifies that a specified condition is true. |
![]() ![]() | ReferenceEquals | (Inherited from Object.) |
| Name | Description | |
|---|---|---|
![]() ![]() | AllItemsAreInstancesOfType | Overloaded. Verifies that all elements in a specified collection are instances of a specified type. |
![]() ![]() | AllItemsAreNotNull | Overloaded. Verifies that all items in a specified collection are not a null reference (Nothing in Visual Basic). |
![]() ![]() | AllItemsAreUnique | Overloaded. Verifies that all items in a specified collection are unique. |
![]() ![]() | AreEqual | Overloaded. Verifies that specified collections are equal. Two collections are equal if they have the same elements in the same order and quantity. Elements are equal if their values are equal, not if they refer to the same object. |
![]() ![]() | AreEquivalent | Overloaded. Verifies that the specified collections are equivalent. Two collections are equivalent if they have the same elements in the same quantity, but in any order. Elements are equal if their values are equal, not if they refer to the same object. |
![]() ![]() | AreNotEqual | Overloaded. Verifies that specified collections are not equal. |
![]() ![]() | AreNotEquivalent | Overloaded. Verifies that the specified collections are not equivalent. |
![]() ![]() | Contains | Overloaded. Verifies that a specified collection contains a specified element. |
![]() ![]() | DoesNotContain | Overloaded. Verifies that a specified collection does not contain a specified element. |
![]() ![]() | IsNotSubsetOf | Overloaded. Verifies that one collection is not a subset of another collection. |
![]() ![]() | IsSubsetOf | Overloaded. Verifies that one collection is a subset of another collection. |
![]() ![]() | ReferenceEquals | (Inherited from Object.) |
| Name | Description | |
|---|---|---|
![]() ![]() | Contains | Overloaded. Verifies that a specified string contains a specified substring. |
![]() ![]() | DoesNotMatch | Overloaded. Verifies that a specified string does not match a regular expression. |
![]() ![]() | EndsWith | Overloaded. Verifies that a specified string ends with a specified substring. |
![]() ![]() | Matches | Overloaded. Verifies that a specified string matches a regular expression. |
![]() ![]() | ReferenceEquals | (Inherited from Object.) |
![]() ![]() | StartsWith | Overloaded. Verifies that a specified string begins with a specified substring. |