I'm writing a custom logger following this msdn blog and it's working I'm able to print in console the results of the test executions but now I need to improve this report and when I try to initialize an object or call a static method the logger fails.
for example:
private void TestResultHandler(object sender, TestResultEventArgs e)
{
Console.WriteLine("TEST")
Test test = new Test();
it prints in console -> TEST
but when I do this:
private void TestResultHandler(object sender, TestResultEventArgs e)
{
Test test = new Test();
Console.WriteLine("TEST")
or
private void TestResultHandler(object sender, TestResultEventArgs e)
{
TestHandler.SaveData(e.Result.Duration);
Console.WriteLine("TEST")
The console doesn't print anything.
Anyone knows why is this happening?
Thanks in advance, Ed