Using MSTest, I needed to obtain the name of the current test from within the [TestInitialize]
method. You can get this from the TestContext.TestName
The method
[ClassInitialize]
public static void SetupTests(TestContext testContext) { }
is called before the property set TestContext is set. So if you need the context in SetupTests then the parameter is usefull. Otherwise use the TestContext property, which is set before each
[TestInitialize]
public void SetupTest() { }