public override string ToString() { var output = new StringBuilder(); output.AppendLine(Message.Replace("\n", Environment.NewLine)); return output.ToString(); }
public void ReplacesUnixLineEndingsWithEnvironmentEndings() { string expected = string.Format("Hello{0}World{0}", Environment.NewLine); var response = new Neo4jErrorResponse {Message = "Hello\nWorld"}; response.ToString().Should().Be(expected); }