public void ParseResponses_Escape() { //escaped var actual = CommandBuilder.ParseResponses("-1 \"bad command.\"\n"); var expected = new Response[] { new ErrorResponse() { Message = "bad command." } }; AssertObjects.HaveEqualProperties(expected, actual, true); //not escaped actual = CommandBuilder.ParseResponses("-1 bad_command.\n"); expected = new Response[] { new ErrorResponse() { Message = "bad_command." } }; AssertObjects.HaveEqualProperties(expected, actual, true); //not escaped actual = CommandBuilder.ParseResponses("-1 bad command.\n"); expected = new Response[] { new ErrorResponse() { Message = "bad" } }; AssertObjects.HaveEqualProperties(expected, actual, true); }