Improved NetworkIdentity.Reset test (#2863)

This commit is contained in:
MrGadget 2021-08-01 03:22:20 -04:00 committed by GitHub
parent b495eaa965
commit 03cd2e286f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1116,10 +1116,14 @@ public void Reset()
// mark for reset and reset
identity.Reset();
Assert.That(identity.isServer, Is.False);
Assert.That(identity.isClient, Is.False);
Assert.That(identity.isLocalPlayer, Is.False);
Assert.That(identity.netId, Is.EqualTo(0));
Assert.That(identity.connectionToClient, Is.Null);
Assert.That(identity.connectionToServer, Is.Null);
Assert.That(identity.hasAuthority, Is.False);
Assert.That(identity.observers, Is.Empty);
}
[Test, Ignore("NetworkServerTest.SendCommand does it already")]