I'm having tests like so:
[DataTestMethod]
[DataRow("example1")]
[DataRow("example2")]
public void Test_Example(string name)
{
// test logic
}
Our logging system is currently implemented in a single [TestCleanup]
method in a base [TestClass]
.
I can access the test method's name via the TestContext
property, but that does not include any info regarding the datarow parameters.
Is it possible to get these values somehow? In [TestCleanup]
or in [TestInitialize]
would do fine.