From 90674529e0f6973f323a06901e4bbf0ecdc057a4 Mon Sep 17 00:00:00 2001 From: vis2k Date: Sat, 7 Aug 2021 15:12:23 +0800 Subject: [PATCH] syntax --- Assets/Mirror/Tests/Editor/NetworkBehaviourTests.cs | 1 + 1 file changed, 1 insertion(+) diff --git a/Assets/Mirror/Tests/Editor/NetworkBehaviourTests.cs b/Assets/Mirror/Tests/Editor/NetworkBehaviourTests.cs index a8729321a..336c7cbfa 100644 --- a/Assets/Mirror/Tests/Editor/NetworkBehaviourTests.cs +++ b/Assets/Mirror/Tests/Editor/NetworkBehaviourTests.cs @@ -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");