NetworkServertest: LocalClientActiveTest

This commit is contained in:
vis2k 2020-02-23 11:17:17 +01:00
parent 1e198e4bcc
commit 7b6f1326eb

View File

@ -150,6 +150,22 @@ public void SetLocalConnectionTest()
NetworkServer.Shutdown();
}
[Test]
public void LocalClientActiveTest()
{
// listen
NetworkServer.Listen(1);
Assert.That(NetworkServer.localClientActive, Is.False);
// set local connection
NetworkServer.SetLocalConnection(new ULocalConnectionToClient());
Assert.That(NetworkServer.localClientActive, Is.True);
// shutdown
NetworkServer.Shutdown();
}
[Test]
public void ShutdownCleanupTest()
{