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[] { })); }
public void StatServerCommandTest() { var command = new StatServerCommand(); try { command.Run(); } catch (Exception e) { Assert.IsTrue(e is ActorException); } command.Run("Test"); }