mirror of
https://github.com/Thealexbarney/LibHac.git
synced 2024-11-14 10:49:41 +01:00
30 lines
751 B
C#
30 lines
751 B
C#
using System.Diagnostics;
|
|
using LibHac.Tests;
|
|
using Xunit.Abstractions;
|
|
using Xunit.Sdk;
|
|
|
|
[assembly: Xunit.TestFramework("LibHac.Tests." + nameof(LibHacTestFramework), "LibHac.Tests")]
|
|
|
|
namespace LibHac.Tests
|
|
{
|
|
public class LibHacTestFramework : XunitTestFramework
|
|
{
|
|
public LibHacTestFramework(IMessageSink messageSink)
|
|
: base(messageSink)
|
|
{
|
|
SetDebugHandler();
|
|
SetResultNames();
|
|
}
|
|
|
|
private static void SetDebugHandler()
|
|
{
|
|
Trace.Listeners.Clear();
|
|
Trace.Listeners.Add(new DebugAssertHandler());
|
|
}
|
|
|
|
private static void SetResultNames()
|
|
{
|
|
Result.SetNameResolver(new ResultNameResolver());
|
|
}
|
|
}
|
|
}
|