Deserializing immutable set and dictionary create hash impls (#2159)
This commit is contained in:
@@ -304,6 +304,8 @@ namespace Newtonsoft.Json.Tests.Serialization
|
||||
Assert.IsTrue(l.Contains("3"));
|
||||
Assert.IsTrue(l.Contains("II"));
|
||||
Assert.IsTrue(l.Contains("One"));
|
||||
|
||||
Assert.IsTrue(l is ImmutableHashSet<string>);
|
||||
}
|
||||
#endregion
|
||||
|
||||
@@ -395,6 +397,8 @@ namespace Newtonsoft.Json.Tests.Serialization
|
||||
Assert.AreEqual("One", l[1]);
|
||||
Assert.AreEqual("II", l[2]);
|
||||
Assert.AreEqual("3", l[3]);
|
||||
|
||||
Assert.IsTrue(l is ImmutableDictionary<int, string>);
|
||||
}
|
||||
#endregion
|
||||
|
||||
|
||||
Reference in New Issue
Block a user