Files
git-tfs/GitTfsTest/BaseTest.cs
T
2016-10-22 01:17:43 +02:00

23 lines
771 B
C#

namespace Sep.Git.Tfs.Test
{
public class BaseTest
{
/// <summary>
/// Set this variable to `true` to display trace logs
/// This value is set by default to false because xunit runner >v2.0 do not hide these logs anymore
/// and it too much logs are displayed in build output (AppVeyor page is too heavy to load and read!)
/// </summary>
public const bool DebugTests = false;
public static bool DisplayTrace { get { return System.Diagnostics.Debugger.IsAttached || DebugTests; } }
public BaseTest()
{
Globals.DisableGarbageCollect = true;
if(!DisplayTrace)
{
System.Diagnostics.Trace.Listeners.Clear();
}
}
}
}