Prechádzať zdrojové kódy

[WCF] fix JSON deserialization test that didn't match .NET behavior.

JSON array is deserialized as Array, not List<T>.
Atsushi Eno 10 rokov pred
rodič
commit
b58f0e8232

+ 1 - 1
mcs/class/System.ServiceModel.Web/Test/System.Runtime.Serialization.Json/JsonReaderTest.cs

@@ -876,7 +876,7 @@ namespace MonoTests.System.Runtime.Serialization.Json
 				DataContractJsonSerializer jsonSerializer = new
 					DataContractJsonSerializer(typeof(IEnumerable<string>));
 				var result = jsonSerializer.ReadObject(stream);
-				Assert.AreEqual (typeof (List<string>), result.GetType ());
+				Assert.AreEqual (typeof (string []), result.GetType ());
 			}
 		}
 	}