mirror of
https://github.com/MirrorNetworking/Mirror.git
synced 2024-11-18 11:00:32 +00:00
NetworkServerTests: ShutdownCleanupTest improved
This commit is contained in:
parent
45ba9a9939
commit
5de22d2ff2
@ -179,6 +179,7 @@ public void ShutdownCleanupTest()
|
|||||||
|
|
||||||
// set local connection
|
// set local connection
|
||||||
NetworkServer.SetLocalConnection(new ULocalConnectionToClient());
|
NetworkServer.SetLocalConnection(new ULocalConnectionToClient());
|
||||||
|
Assert.That(NetworkServer.localClientActive, Is.True);
|
||||||
|
|
||||||
// connect
|
// connect
|
||||||
Transport.activeTransport.OnServerConnected.Invoke(42);
|
Transport.activeTransport.OnServerConnected.Invoke(42);
|
||||||
@ -191,6 +192,7 @@ public void ShutdownCleanupTest()
|
|||||||
Assert.That(NetworkServer.connections.Count, Is.EqualTo(0));
|
Assert.That(NetworkServer.connections.Count, Is.EqualTo(0));
|
||||||
Assert.That(NetworkServer.active, Is.False);
|
Assert.That(NetworkServer.active, Is.False);
|
||||||
Assert.That(NetworkServer.localConnection, Is.Null);
|
Assert.That(NetworkServer.localConnection, Is.Null);
|
||||||
|
Assert.That(NetworkServer.localClientActive, Is.False);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user