using NUnit.Framework; using System.Runtime.Loader; using Console = Game.Console; namespace GoakeTests.ConsoleTests { public class ConsoleTests { [SetUp] public void Setup() { Console.Init(); var asdf = AssemblyLoadContext.Default.Assemblies; } [TearDown] public void CleanUp() { Console.Destroy(); } [Test] public void Test1() { string testPrint = "Hello world!"; Console.OnPrint += delegate(string s) { Assert.True(s == testPrint); }; Console.Print(testPrint); } [Test] public void Test2() { string testPrint = "Hello world2!"; Console.OnPrint += delegate(string s) { Assert.True(s == testPrint); }; Console.Print(testPrint); } } }