@@ -232,21 +232,24 @@ public void PrettyPrintTest ()
232232 {
233233 JsonWriter writer = new JsonWriter ( ) ;
234234
235- string json = @"
236- [
237- {
238- ""precision"" : ""zip"",
239- ""Latitude"" : 37.7668,
240- ""Longitude"" : -122.3959,
241- ""City"" : ""SAN FRANCISCO""
242- },
243- {
244- ""precision"" : ""zip"",
245- ""Latitude"" : 37.371991,
246- ""Longitude"" : -122.02602,
247- ""City"" : ""SUNNYVALE""
248- }
249- ]" ;
235+ string json = string . Join (
236+ Environment . NewLine ,
237+ new [ ] {
238+ "" ,
239+ "[" ,
240+ " {" ,
241+ " \" precision\" : \" zip\" ," ,
242+ " \" Latitude\" : 37.7668," ,
243+ " \" Longitude\" : -122.3959," ,
244+ " \" City\" : \" SAN FRANCISCO\" " ,
245+ " }," ,
246+ " {" ,
247+ " \" precision\" : \" zip\" ," ,
248+ " \" Latitude\" : 37.371991," ,
249+ " \" Longitude\" : -122.02602," ,
250+ " \" City\" : \" SUNNYVALE\" " ,
251+ " }" ,
252+ "]" } ) ;
250253
251254 writer . PrettyPrint = true ;
252255
@@ -276,7 +279,7 @@ public void PrettyPrintTest ()
276279 writer . WriteObjectEnd ( ) ;
277280 writer . WriteArrayEnd ( ) ;
278281
279- Assert . AreEqual ( writer . ToString ( ) , json ) ;
282+ Assert . AreEqual ( json , writer . ToString ( ) ) ;
280283 }
281284
282285 [ Test ]
0 commit comments