improve previous test

This commit is contained in:
vis2k 2020-03-07 13:58:52 +01:00
parent 3acdd97fee
commit bf1ac3279b

View File

@ -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();
}