mirror of
https://github.com/MirrorNetworking/Mirror.git
synced 2024-11-18 11:00:32 +00:00
Improved NetworkIdentity.Reset test (#2863)
This commit is contained in:
parent
b495eaa965
commit
03cd2e286f
@ -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")]
|
||||
|
Loading…
Reference in New Issue
Block a user