public void ErrorMessage( PirateHost host, PirateClient pclient, PirateError error ) { PirateHostCommands.ErrorMessage(host, pclient, error); // TODO: add assertions to method PirateHostCommandsTest.ErrorMessage(PirateHost, PirateClient, PirateError) }
/// <summary> /// Send error message. /// </summary> /// <param name="host">The host.</param> /// <param name="pclient">The client.</param> /// <param name="error">The error.</param> public static void ErrorMessage(PirateHost host, PirateClient pclient, PirateError error) { Contract.Requires(host != null && pclient != null && error != PirateError.Unknown); var msg = new PirateMessage(PirateMessageHead.Erro, error.ToString()); host.SendMessage(pclient, msg); }