NetworkServerTests: ShutdownCleanupTest improved

This commit is contained in:
vis2k 2020-02-23 11:18:54 +01:00
parent 45ba9a9939
commit 5de22d2ff2

View File

@ -179,6 +179,7 @@ public void ShutdownCleanupTest()
// set local connection
NetworkServer.SetLocalConnection(new ULocalConnectionToClient());
Assert.That(NetworkServer.localClientActive, Is.True);
// connect
Transport.activeTransport.OnServerConnected.Invoke(42);
@ -191,6 +192,7 @@ public void ShutdownCleanupTest()
Assert.That(NetworkServer.connections.Count, Is.EqualTo(0));
Assert.That(NetworkServer.active, Is.False);
Assert.That(NetworkServer.localConnection, Is.Null);
Assert.That(NetworkServer.localClientActive, Is.False);
}
}
}