mirror of
https://github.com/MirrorNetworking/Mirror.git
synced 2024-11-18 11:00:32 +00:00
improve previous test
This commit is contained in:
parent
3acdd97fee
commit
bf1ac3279b
@ -664,6 +664,10 @@ public void GetRpcHandler()
|
||||
NetworkBehaviour.CmdDelegate expected = NetworkBehaviourDelegateComponent.Delegate;
|
||||
Assert.That(func, Is.EqualTo(expected));
|
||||
|
||||
// invalid hash should return null handler
|
||||
NetworkBehaviour.CmdDelegate funcNull = NetworkBehaviour.GetRpcHandler(1234);
|
||||
Assert.That(funcNull, Is.Null);
|
||||
|
||||
// clean up
|
||||
NetworkBehaviour.ClearDelegates();
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user