mirror of
https://github.com/MirrorNetworking/Mirror.git
synced 2024-11-18 02:50:32 +00:00
NetworkServerTest: SetClientReadyAndNotReady simplified
This commit is contained in:
parent
2506195e42
commit
7f36a75ef7
@ -396,15 +396,14 @@ public void OnDataReceivedInvalidConnectionId()
|
||||
[Test]
|
||||
public void SetClientReadyAndNotReady()
|
||||
{
|
||||
LocalConnectionToClient connection = new LocalConnectionToClient();
|
||||
connection.connectionToServer = new LocalConnectionToServer();
|
||||
Assert.That(connection.isReady, Is.False);
|
||||
CreateLocalConnectionPair(out LocalConnectionToClient connectionToClient, out _);
|
||||
Assert.That(connectionToClient.isReady, Is.False);
|
||||
|
||||
NetworkServer.SetClientReady(connection);
|
||||
Assert.That(connection.isReady, Is.True);
|
||||
NetworkServer.SetClientReady(connectionToClient);
|
||||
Assert.That(connectionToClient.isReady, Is.True);
|
||||
|
||||
NetworkServer.SetClientNotReady(connection);
|
||||
Assert.That(connection.isReady, Is.False);
|
||||
NetworkServer.SetClientNotReady(connectionToClient);
|
||||
Assert.That(connectionToClient.isReady, Is.False);
|
||||
}
|
||||
|
||||
[Test]
|
||||
|
Loading…
Reference in New Issue
Block a user