netcode: replicate other players for connecting client
This commit is contained in:
43
Tests/ConsoleTests.cs
Normal file
43
Tests/ConsoleTests.cs
Normal file
@@ -0,0 +1,43 @@
|
||||
using NUnit.Framework;
|
||||
using Cabrito;
|
||||
using Console = Cabrito.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);
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user