public void StatServerCommandTest()
        {
            var service = new ServerCommandService();
            var command = new StatServerCommand();

            service.RegisterCommand(command);
            var actor = new ServiceActorTest(service);

            TestLauncherActor.Test(() => actor.SendMessage(command.Key, new string[] { }));
        }
Пример #2
0
        public void StatServerCommandTest()
        {
            var command = new StatServerCommand();

            try
            {
                command.Run();
            }
            catch (Exception e)
            {
                Assert.IsTrue(e is ActorException);
            }
            command.Run("Test");
        }