-Fixed deserializing non-generic IReadOnlyCollection<T> implementations

This commit is contained in:
James Newton-King
2014-05-12 13:40:48 +12:00
parent 7a8f5e43bc
commit 017a38c65b
5 changed files with 56 additions and 4 deletions
@@ -71,7 +71,9 @@ namespace Newtonsoft.Json.Tests
jsonWriter.WriteEndObject();
}
string json = Encoding.UTF8.GetString(ms.ToArray());
byte[] data = ms.ToArray();
string json = Encoding.UTF8.GetString(data, 0, data.Length);
Assert.AreEqual(@"{" + '\n' + @" ""prop"": true" + '\n' + "}", json);
}