mirror of
https://github.com/MirrorNetworking/Mirror.git
synced 2024-11-18 11:00:32 +00:00
NetworkBehaviourTests: SyncVarGameObjectEqualNull
This commit is contained in:
parent
fa707832a9
commit
949ce8288c
@ -671,6 +671,18 @@ public void GetDelegate()
|
||||
// clean up
|
||||
NetworkBehaviour.ClearDelegates();
|
||||
}
|
||||
|
||||
// NOTE: SyncVarGameObjectEqual should be static later
|
||||
[Test]
|
||||
public void SyncVarGameObjectEqualNull()
|
||||
{
|
||||
// our identity should have a netid for comparing
|
||||
identity.netId = 42;
|
||||
|
||||
// null should return false
|
||||
bool result = emptyBehaviour.SyncVarGameObjectEqual(null, identity.netId);
|
||||
Assert.That(result, Is.False);
|
||||
}
|
||||
}
|
||||
|
||||
// we need to inherit from networkbehaviour to test protected functions
|
||||
|
Loading…
Reference in New Issue
Block a user