public void PrefixedCommand() { string prefix = "[this is a prefix]"; IMessage msg = new CommandMessage(prefix + "ping"); int argPos = 0; if (!msg.HasStringPrefix(prefix, ref argPos)) { Assert.Fail("Command wasn't detected to have a prefix."); } IExecutionResult result = _service.Execute(msg, argPos); if (!result.IsSuccess) { Console.WriteLine($"{ result.Error }: { result.ErrorReason }"); Assert.Fail(); } }