有没有办法从测试夹具的设置方法中获取当前正在执行的测试的名称?
Have a look at the TestContext:
[Test]
public void Pass()
{
Console.WriteLine("Test name: {0}", TestContext.CurrentContext.Test.FullName);
}
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.