|
AfterAssemblyCleanupEventArgs
|
|
AfterAssemblyInitializeEventArgs
|
|
AfterClassCleanupEventArgs
|
|
AfterClassInitializeEventArgs
|
|
AfterTestCleanupEventArgs
|
|
AfterTestInitializeEventArgs
|
|
ArchitectureConditionAttribute
|
此属性用于忽略基于当前进程体系结构的测试类或测试方法。
|
|
AssemblyCleanupAttribute
|
程序集清理属性。
|
|
AssemblyFixtureProviderAttribute
|
指示在使用测试程序集时,即使未在该测试程序集本身中声明方法,也应当发现并执行一FixtureType次指定批注AssemblyInitializeAttributeAssemblyCleanupAttribute的方法或应执行一次。
|
|
AssemblyInitializeAttribute
|
程序集初始化属性。
|
|
Assert
|
用于在单元测试中测试各种条件的帮助程序类的集合。 如果未满足要测试的条件,则会引发异常。
|
|
AssertExtensions
|
为 Assert 类提供该扩展。
|
|
AssertFailedException
|
AssertFailedException 类。 用于指示测试用例的失败。
|
|
AssertInconclusiveException
|
断言无结论异常。
|
|
BaseShadow
|
|
BeforeAssemblyCleanupEventArgs
|
|
BeforeAssemblyInitializeEventArgs
|
|
BeforeClassCleanupEventArgs
|
|
BeforeClassInitializeEventArgs
|
|
BeforeTestCleanupEventArgs
|
|
BeforeTestInitializeEventArgs
|
|
CIConditionAttribute
|
此属性用于有条件地控制测试类或测试方法是否在 CI 环境中运行或被忽略。
|
|
ClassCleanupAttribute
|
类清理属性。
|
|
ClassCleanupExecutionAttribute
|
何时运行类清理方法的规范。
|
|
ClassInitializeAttribute
|
类初始化属性。
|
|
CollectionAssert
|
帮助程序类的集合,用于测试与单元测试中的集合关联的各种条件。 如果未满足要测试的条件,则会引发异常。
|
|
ConditionBaseAttribute
|
此属性用于根据条件和使用可选消息,有条件地控制测试类还是测试方法将运行或忽略。
|
|
CssIterationAttribute
|
CSS 迭代 URI。
|
|
CssProjectStructureAttribute
|
CSS 项目结构 URI。
|
|
DataRowAttribute
|
用于定义测试方法的内联数据的属性。
|
|
DataSourceAttribute
|
指定用于数据驱动测试的连接字符串、表名称和行访问方法。
|
|
DataSourceElement
|
数据源元素。
|
|
DataSourceElementCollection
|
数据源元素集合。
|
|
DataTestMethodAttribute
|
此属性当前不提供与 不同的 功能。 它仅用于向后兼容性。 建议使用 TestMethodAttribute ,即使在参数化测试中也是如此。
|
|
DeploymentItemAttribute
|
用于指定每个测试部署的部署项(文件或目录)。
可以在测试类或测试方法上指定。
可以有多个属性实例来指定多个项。
项路径可以是绝对路径或相对路径(如果相对路径)相对于 RunConfig.RelativePathRoot。
|
|
DescriptionAttribute
|
测试的说明。
|
|
DiscoverInternalsAttribute
|
测试程序集中存在此属性会导致 MSTest 发现测试类(即具有“TestClass”属性的类)和测试方法(即具有“TestMethod”属性的方法),除了声明公共测试类和测试方法外,还声明了内部测试类和测试方法。 如果测试程序集中不存在此属性,则不会发现此类中的测试。
|
|
DoNotParallelizeAttribute
|
禁用并行化的规范。
|
|
DynamicDataAttribute
|
用于定义测试方法的动态数据的属性。
|
|
ExecutableConditionAttribute
|
此属性用于根据给定的可执行文件(工具)是否可用,有条件地控制测试类或测试方法是否运行或被忽略。
|
|
ExpectedExceptionAttribute
|
指定需要指定类型的异常的属性。
|
|
ExpectedExceptionBaseAttribute
|
指定需要单元测试异常的属性的基类。
|
|
GenericParameterHelper
|
此类旨在帮助用户对使用泛型类型的类型执行单元测试。
GenericParameterHelper 满足一些常见的泛型类型约束,例如:
- 公共默认构造函数
- 实现通用接口:IComparable、IEnumerable。
|
|
GitHubWorkItemAttribute
|
GitHubWorkItem 属性;用于指定与此测试关联的 GitHub 问题。
|
|
GlobalTestCleanupAttribute
|
一个适用于程序集中每个测试方法的全局测试清理属性。
应用此属性的方法必须是公共的、静态的、非泛型的,具有 TestContext 类型的单个参数,并返回 void 或 Task。
|
|
GlobalTestInitializeAttribute
|
一个全局测试初始化属性,该属性适用于程序集中的每个测试方法。
应用此属性的方法必须是公共的、静态的、非泛型的,具有 TestContext 类型的单个参数,并返回 void 或 Task。
|
|
HostTypeAttribute
|
|
IgnoreAttribute
|
此属性用于忽略具有可选消息的测试类或测试方法。
|
|
InternalTestFailureException
|
InternalTestFailureException 类。 用于指示测试用例的内部故障。
|
|
MemberConditionAttribute
|
根据一个或多个 staticBoolean 成员(属性、字段或无参数方法) Type 的值和成员名称,有条件地运行或忽略测试类或测试方法。
|
|
OnTestStoppingEventArgs
|
|
OSConditionAttribute
|
此属性用于忽略具有可选消息的测试类或测试方法。
|
|
OwnerAttribute
|
测试所有者。
|
|
ParallelizeAttribute
|
测试运行的并行化级别的规范。
|
|
PlannedTest
|
表示计划运行的单个测试(即已在当前测试运行中发现并通过了活动筛选器)。 返回者 PlannedTests。
|
|
PriorityAttribute
|
优先级属性;用于指定单元测试的优先级。
|
|
PrivateObject
|
此类表示系统中的实时 NON 公共内部对象
|
|
PrivateType
|
此类表示专用访问器功能的专用类。
|
|
RetryAttribute
|
此属性用于在失败时对测试方法设置重试计数。
|
|
RetryBaseAttribute
|
一个抽象属性,用于控制在测试方法失败时重试测试方法。 由派生类决定如何完成重试。
|
|
RetryResult
|
测试重试的结果。
|
|
ShadowingAttribute
|
|
STATestClassAttribute
|
测试类属性。
|
|
STATestMethodAttribute
|
测试类属性。
|
|
StringAssert
|
字符串断言。
|
|
TestCategoryAttribute
|
TestCategory 属性;用于指定单元测试的类别。
|
|
TestCategoryBaseAttribute
|
“Category”属性的基类。
|
|
TestClassAttribute
|
此属性用于标记测试类。
|
|
TestClassExtensionAttribute
|
|
TestCleanupAttribute
|
测试清理属性标记在标有 a TestMethodAttribute的每个测试后执行的方法。
|
|
TestConfiguration
|
支持测试的配置设置。
|
|
TestConfigurationSection
|
测试的配置部分。
|
|
TestContext
|
用于存储提供给单元测试的信息。
|
|
TestDataRow<T>
|
从(例如,通过GetData(MethodInfo))返回DynamicDataAttribute此类型时,它将确定与特定测试用例相关的信息。
|
|
TestDataSourceDiscoveryAttribute
|
指定如何发现 ITestDataSource 测试。
|
|
TestDataSourceOptionsAttribute
|
指定所有 ITestDataSource 当前程序集的选项。
|
|
TestExecution
|
|
TestExecutionEventArgs
|
|
TestExtensionExecution
|
|
TestFilterContext
|
元数据 MSTest 的快照针对 ITestFilter 考虑的单个测试公开。
|
|
TestFilterProviderAttribute
|
注册 MSTest 适配器针对要运行的每个测试调用的用户提供的 ITestFilter 实现,该实现将在应用任何命令行筛选器(--filter、测试资源管理器选择等)后运行。
|
|
TestIdGenerationStrategyAttribute
|
指定如何生成测试 ID。
|
|
TestInitializeAttribute
|
测试初始化属性。
|
|
TestMethodAttribute
|
此属性用于标记测试方法。
|
|
TestMethodInvokerContext
|
|
TestMethodInvokerResult
|
|
TestPropertyAttribute
|
测试属性属性。
|
|
TestRun
|
提供环境访问有关当前正在执行的测试运行的信息。
|
|
TimeoutAttribute
|
Timeout 属性;用于指定单元测试的超时。
|
|
UnitTestAssertException
|
框架异常的基类。
|
|
WebServiceHelper
|
|
WorkItemAttribute
|
WorkItem 属性;用于指定与此测试关联的工作项。
|