diff --git a/Assets/Mirror/Tests/Editor/NetworkServerTest.cs b/Assets/Mirror/Tests/Editor/NetworkServerTest.cs index 7f5ff396e..ef3679273 100644 --- a/Assets/Mirror/Tests/Editor/NetworkServerTest.cs +++ b/Assets/Mirror/Tests/Editor/NetworkServerTest.cs @@ -308,19 +308,14 @@ public void RemoveConnection() { // listen NetworkServer.Listen(1); - Assert.That(NetworkServer.connections.Count, Is.EqualTo(0)); // add connection NetworkConnectionToClient conn42 = new NetworkConnectionToClient(42, false); - bool result42 = NetworkServer.AddConnection(conn42); - Assert.That(result42, Is.True); + Assert.That(NetworkServer.AddConnection(conn42), Is.True); Assert.That(NetworkServer.connections.Count, Is.EqualTo(1)); - Assert.That(NetworkServer.connections.ContainsKey(42), Is.True); - Assert.That(NetworkServer.connections[42], Is.EqualTo(conn42)); // remove connection - bool resultRemove = NetworkServer.RemoveConnection(42); - Assert.That(resultRemove, Is.True); + Assert.That(NetworkServer.RemoveConnection(42), Is.True); Assert.That(NetworkServer.connections.Count, Is.EqualTo(0)); }