PkmnLibSharp/PkmnLibSharpTests/TestClass.cs

25 lines
808 B
C#
Raw Normal View History

2020-08-14 14:15:19 +00:00
using System;
using System.Reflection;
using System.Runtime.InteropServices;
using NUnit.Framework;
2020-08-14 14:15:19 +00:00
using PkmnLibSharp.Battling;
namespace PkmnLibSharpTests
{
[SetUpFixture]
public sealed class TestClass
{
[OneTimeSetUp]
public void Init()
{
NativeLibrary.Load("Arbutils", Assembly.GetCallingAssembly(), DllImportSearchPath.AssemblyDirectory);
NativeLibrary.Load("CreatureLib", Assembly.GetCallingAssembly(), DllImportSearchPath.AssemblyDirectory);
NativeLibrary.Load("pkmnLib", Assembly.GetCallingAssembly(), DllImportSearchPath.AssemblyDirectory);
2020-08-14 14:15:19 +00:00
LogHandler.RegisterListener((level, s) =>
{
Console.WriteLine($"[{level.ToString().ToUpperInvariant()}] {s}");
});
}
}
}