Fix newline assertion in TestJsonFormatted on mono
This commit is contained in:
parent
7149cee282
commit
3ccbf4b893
@ -221,7 +221,8 @@ namespace Google.ProtocolBuffers
|
||||
Extensions.WriteTo(TestXmlMessage.CreateBuilder().SetText("a").SetNumber(1).Build(),
|
||||
new MessageFormatOptions() { FormattedOutput = true }, "application/json", ms);
|
||||
|
||||
Assert.AreEqual("{\r\n \"text\": \"a\",\r\n \"number\": 1\r\n}", Encoding.UTF8.GetString(ms.ToArray(), 0, (int)ms.Length));
|
||||
string expected = string.Format("{{{0} \"text\": \"a\",{0} \"number\": 1{0}}}", System.Environment.NewLine);
|
||||
Assert.AreEqual(expected, Encoding.UTF8.GetString(ms.ToArray(), 0, (int)ms.Length));
|
||||
}
|
||||
|
||||
[Test]
|
||||
|
Loading…
Reference in New Issue
Block a user