1
0
mirror of https://github.com/oliverbooth/X10D synced 2024-11-22 19:18:46 +00:00

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

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();
}
}