This commit is contained in:
James Newton-King
2014-10-20 18:52:21 +13:00
parent 703b30f9d1
commit 04d9d3181a
7 changed files with 417 additions and 85 deletions
@@ -884,13 +884,24 @@ namespace Newtonsoft.Json.Tests
Assert.AreEqual('\'', jsonWriter.QuoteChar);
jsonWriter.WriteStartObject();
jsonWriter.WritePropertyName("propertyName");
jsonWriter.WriteValue(double.NaN);
jsonWriter.IndentChar = '?';
Assert.AreEqual('?', jsonWriter.IndentChar);
jsonWriter.Indentation = 6;
Assert.AreEqual(6, jsonWriter.Indentation);
jsonWriter.WritePropertyName("prop2");
jsonWriter.WriteValue(123);
jsonWriter.WriteEndObject();
}
string expected = @"{
_____'propertyName': NaN
_____'propertyName': NaN,
??????'prop2': 123
}";
string result = sb.ToString();