Anabranch.Neo4JConsolePackage.Neo4jErrorResponse.ToString C# (CSharp) Method

ToString() public method

public ToString ( ) : string
return string
        public override string ToString()
        {
            var output = new StringBuilder();

            output.AppendLine(Message.Replace("\n", Environment.NewLine));

            return output.ToString();
        }

Usage Example

            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);
            }