public void RpcCanSendNetworkBehaviourDerived()
        {
            RpcNetworkIdentityBehaviour hostBehaviour = CreateHostObject <RpcNetworkIdentityBehaviour>(true);

            RpcNetworkIdentityBehaviour expected = CreateHostObject <RpcNetworkIdentityBehaviour>(true);

            int callCount = 0;

            hostBehaviour.onSendNetworkBehaviourDerivedCalled += actual =>
            {
                callCount++;
                Assert.That(actual, Is.EqualTo(expected));
            };
            hostBehaviour.SendNetworkBehaviourDerived(expected);
            ProcessMessages();
            Assert.That(callCount, Is.EqualTo(1));
        }
 public void SendNetworkBehaviourDerived(RpcNetworkIdentityBehaviour value)
 {
     onSendNetworkBehaviourDerivedCalled?.Invoke(value);
 }