Mbunit - Gallio. Get name of the currently executing test
Pregunta
Is there a way to get the name of the currently executing test from ie the Setup method of a test fixture?
Solución
Have a look at the TestContext:
[Test]
public void Pass()
{
Console.WriteLine("Test name: {0}", TestContext.CurrentContext.Test.FullName);
}
Licenciado bajo: CC-BY-SA con atribución
No afiliado a StackOverflow