0

我正在尝试检索要在ClassInitialize中运行的所选测试的列表。你能帮忙吗?

[ClassInitialize]
public void classInitialize()
{
    String name=TestContext.CurrentContext.Test.MethodName;
}

使用上面的代码,我只能获得当前正在运行的测试用例。

[ClassInitialize]
public void ClassInitialize()
{
    //Need to get the list of the selected test to run.
}

实际:我无法检索选定的测试。

预期:应该列出要运行的测试列表。

4

0 回答 0