Skip to content

Commit

Permalink
add a NUnit ConsoleTraceListener
Browse files Browse the repository at this point in the history
  • Loading branch information
jakub-grzesiowski committed May 27, 2024
1 parent 6125b08 commit f3ca2d3
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions src/UnitTests/PubnubApiPCL.Tests/SetupTrace.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
using System.Diagnostics;
using NUnit.Framework;

namespace PubnubApiPCL.Tests;

[SetUpFixture]
public class SetupTrace
{
[OneTimeSetUp]
public void StartTest()
{
Trace.Listeners.Add(new ConsoleTraceListener());
}

[OneTimeTearDown]
public void EndTest()
{
Trace.Flush();
}
}

0 comments on commit f3ca2d3

Please sign in to comment.