Пример #1
0
        void ChatReceived_Test()
        {
            try
            {
                ConsoleSystem.Arg arg = new ConsoleSystem.Arg("");
                Log("ChatReceived_Test: Test 1");
                Hooks.ChatReceived(ref arg);

                arg = null;
                Log("ChatReceived_Test: Test 2");
                Hooks.ChatReceived(ref arg);

                arg = new ConsoleSystem.Arg("say test");
                Log("ChatReceived_Test: Test 3");
                Hooks.ChatReceived(ref arg);
            }
            catch (Exception ex)
            {
                Logger.LogException(ex);
            }
        }