Files
GoakeFlax/Tests/ConsoleTests.cs

42 lines
622 B
C#

using NUnit.Framework;
using Console = Game.Console;
namespace GoakeTests.ConsoleTests
{
public class ConsoleTests
{
[SetUp]
public void Setup()
{
Console.Init();
}
[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);
}
}
}