mirror of
https://github.com/MirrorNetworking/Mirror.git
synced 2024-11-18 02:50:32 +00:00
NetworkServertest: LocalClientActiveTest
This commit is contained in:
parent
1e198e4bcc
commit
7b6f1326eb
@ -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()
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user