This commit is contained in:
vis2k 2021-06-15 13:19:31 +08:00
parent 26d72ada5d
commit b3820991a1

View File

@ -120,11 +120,8 @@ public void OnConnectedEventCalled()
bool connectCalled = false;
NetworkServer.OnConnectedEvent = conn => connectCalled = true;
// listen
// listen & connect
NetworkServer.Listen(1);
Assert.That(connectCalled, Is.False);
// connect
transport.OnServerConnected.Invoke(42);
Assert.That(connectCalled, Is.True);
}