diff --git a/src/UnitTests/PubnubApiPCL.Tests/SetupTrace.cs b/src/UnitTests/PubnubApiPCL.Tests/SetupTrace.cs new file mode 100644 index 000000000..ca03716ab --- /dev/null +++ b/src/UnitTests/PubnubApiPCL.Tests/SetupTrace.cs @@ -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(); + } +} \ No newline at end of file