X-Git-Url: http://wien.tomnetworks.com/gitweb/?a=blobdiff_plain;f=mcs%2Fclass%2FSystem.Json%2FTest%2FSystem.Json%2FJsonValueTest.cs;h=c3347c689d9999f8bba2514beb75f6c2fedb7098;hb=f7b81bda13d482bdb07ece400021537311154746;hp=2459c1fc3ad0f27478d902ffaccc6f2ec3f0d371;hpb=909bedb4a98212c751b676c447669f884162ee3b;p=mono.git diff --git a/mcs/class/System.Json/Test/System.Json/JsonValueTest.cs b/mcs/class/System.Json/Test/System.Json/JsonValueTest.cs index 2459c1fc3ad..c3347c689d9 100644 --- a/mcs/class/System.Json/Test/System.Json/JsonValueTest.cs +++ b/mcs/class/System.Json/Test/System.Json/JsonValueTest.cs @@ -35,5 +35,11 @@ namespace MonoTests.System var str = j.ToString (); Assert.AreEqual (str, "[1, 2, 3, null]"); } + + [Test] + public void QuoteEscapeBug_20869 () + { + Assert.AreEqual ((new JsonPrimitive ("\"\"")).ToString (), "\"\\\"\\\"\""); + } } }