diff options
author | Atsushi Eno <atsushieno@veritas-vos-liberabit.com> | 2012-04-16 14:51:16 +0400 |
---|---|---|
committer | Atsushi Eno <atsushieno@veritas-vos-liberabit.com> | 2012-04-16 14:51:16 +0400 |
commit | b456ed5ec22a5f101f6577a2be5b8918110a496a (patch) | |
tree | 9f14bd979e6b2b360ab257b4ff15fdac53bf724f /mcs/class/System.Json | |
parent | 8d59c332ef7599bb36ca9a1898bf06afeaf5638a (diff) |
Remove/fix invalid Ststem.Json tests.
Diffstat (limited to 'mcs/class/System.Json')
-rw-r--r-- | mcs/class/System.Json/Test/System.Json/JsonValueTest.cs | 11 |
1 files changed, 1 insertions, 10 deletions
diff --git a/mcs/class/System.Json/Test/System.Json/JsonValueTest.cs b/mcs/class/System.Json/Test/System.Json/JsonValueTest.cs index 2459c1fc3ad..c302a515073 100644 --- a/mcs/class/System.Json/Test/System.Json/JsonValueTest.cs +++ b/mcs/class/System.Json/Test/System.Json/JsonValueTest.cs @@ -17,15 +17,6 @@ namespace MonoTests.System [TestFixture] public class JsonValueTests { // Tests that a trailing comma is allowed in dictionary definitions - [Test] - public void LoadWithTrailingComma () - { - var j = JsonValue.Load (new StringReader ("{ \"a\": \"b\",}")); - Assert.AreEqual (1, j.Count, "itemcount"); - Assert.AreEqual (JsonType.String, j ["a"].JsonType, "type"); - Assert.AreEqual ("b", (string) j ["a"], "value"); - } - // Test that we correctly serialize JsonArray with null elements. [Test] public void ToStringOnJsonArrayWithNulls () { @@ -33,7 +24,7 @@ namespace MonoTests.System Assert.AreEqual (4, j.Count, "itemcount"); Assert.AreEqual (JsonType.Array, j.JsonType, "type"); var str = j.ToString (); - Assert.AreEqual (str, "[1, 2, 3, null]"); + Assert.AreEqual ("[1,2,3,null]", str); } } } |