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:
parent
0bf89bb82a
commit
28d7bee262
20
X10D.Tests/src/SetUpTrace.cs
Normal file
20
X10D.Tests/src/SetUpTrace.cs
Normal 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();
|
||||||
|
}
|
||||||
|
}
|
Loading…
Reference in New Issue
Block a user