Exemplo n.º 1
0
        public IEnumerator UnRegisterMessage1()
        {
            Action <WovenTestMessage> func = Substitute.For <Action <WovenTestMessage> >();

            connectionToClient.RegisterHandler(func);
            connectionToClient.UnregisterHandler <WovenTestMessage>();

            connectionToServer.Send(message);

            yield return(null);

            func.Received(0).Invoke(
                Arg.Any <WovenTestMessage>());
        }