mirror of https://github.com/oliverbooth/X10D
fix(tests): add support for trace logging during tests
This commit is contained in:
parent
0bf89bb82a
commit
28d7bee262
|
@ -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();
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue