This commit is contained in:
vis2k 2021-05-13 12:58:00 +08:00
parent 3a3a726059
commit 46dce930fb

View File

@ -127,7 +127,6 @@ public void IsActive()
[Test] [Test]
public void MaxConnections() public void MaxConnections()
{ {
// listen with maxconnections=1 // listen with maxconnections=1
NetworkServer.Listen(1); NetworkServer.Listen(1);
Assert.That(NetworkServer.connections.Count, Is.EqualTo(0)); Assert.That(NetworkServer.connections.Count, Is.EqualTo(0));
@ -142,7 +141,7 @@ public void MaxConnections()
} }
[Test] [Test]
public void ConnectMessageHandler() public void OnConnectedEventCalled()
{ {
// message handlers // message handlers
bool connectCalled = false; bool connectCalled = false;
@ -158,7 +157,7 @@ public void ConnectMessageHandler()
} }
[Test] [Test]
public void DisconnectMessageHandler() public void OnDisconnectedEventCalled()
{ {
// message handlers // message handlers
bool disconnectCalled = false; bool disconnectCalled = false;