此 API 支持 .NET Framework 基础结构,不适合在代码中直接使用。
返回一个值,该值指示测试通过或未通过。
命名空间: Microsoft.VisualStudio.TestTools.Common
程序集: Microsoft.VisualStudio.QualityTools.Common(在 Microsoft.VisualStudio.QualityTools.Common.dll 中)
语法
声明
Public Shared Function IsTerminal ( _
outcome As TestOutcome _
) As Boolean
public static bool IsTerminal(
TestOutcome outcome
)
public:
static bool IsTerminal(
TestOutcome outcome
)
static member IsTerminal :
outcome:TestOutcome -> bool
public static function IsTerminal(
outcome : TestOutcome
) : boolean
参数
- outcome
类型:Microsoft.VisualStudio.TestTools.Common.TestOutcome
一个 TestOutcome 对象。
返回值
类型:System.Boolean
如果结果指示测试通过或未通过,则该值为 true;否则为 false。
.NET Framework 安全性
- 对直接调用方的完全信任。此成员不能由部分信任的代码使用。有关更多信息,请参见通过部分受信任的代码使用库。