This commit is contained in:
vis2k 2021-08-07 15:12:23 +08:00
parent fd8023dafe
commit 90674529e0

View File

@ -340,6 +340,7 @@ public void RegisterDelegateDoesntOverwrite()
MirrorInvokeType.Command,
NetworkBehaviourDelegateComponent.Delegate,
false);
// registering the same name with a different callback shouldn't
// work
LogAssert.Expect(LogType.Error, "Function " + typeof(NetworkBehaviourDelegateComponent) + "." + nameof(NetworkBehaviourDelegateComponent.Delegate) + " and " + typeof(NetworkBehaviourDelegateComponent) + "." + nameof(NetworkBehaviourDelegateComponent.Delegate2) + " have the same hash. Please rename one of them");