fix(tests): add support for trace logging during tests

This commit is contained in:
Oliver Booth 2023-08-23 14:18:04 +01:00
parent 0bf89bb82a
commit 28d7bee262
Signed by: oliverbooth
GPG Key ID: B89D139977693FED
1 changed files with 20 additions and 0 deletions

View File

@ -0,0 +1,20 @@
using System.Diagnostics;
using NUnit.Framework;
namespace X10D.Tests;
[SetUpFixture]
internal sealed class SetupTrace
{
[OneTimeSetUp]
public void StartTest()
{
Trace.Listeners.Add(new ConsoleTraceListener());
}
[OneTimeTearDown]
public void EndTest()
{
Trace.Flush();
}
}