Find out the next test method to execute in MS TestInitialize
The AssemblyInitialize method is executed only once before all your tests.
Use the TestContext
inside the TestInitialize
method:
[TestClass]
public class TestClass
{
[TestInitialize]
public void TestIntialize()
{
string testMethodName = TestContext.TestName;
}
[TestMethod]
public void TestMethod()
{
}
public TestContext TestContext { get; set; }
}