I'm trying to retrieve a list of the selected test to run in ClassInitialize. Can you help with that?
[ClassInitialize]
public void classInitialize()
{
String name=TestContext.CurrentContext.Test.MethodName;
}
Using the above code I'm able to get only the current running test cases.
[ClassInitialize]
public void ClassInitialize()
{
//Need to get the list of the selected test to run.
}
Actual: I'm unable to retrieve selected tests.
Expected: Should list of the list of test to run.