You've already forked linux-packaging-mono
Imported Upstream version 3.10.0
Former-commit-id: 172c8e3c300b39d5785c7a3e8dfb08ebdbc1a99b
This commit is contained in:
@ -607,7 +607,6 @@ namespace MonoTests.System.Collections.Generic {
|
||||
}
|
||||
|
||||
[Test]
|
||||
[Category ("TargetJvmNotWorking")] // BUGBUG Very very slow on TARGET_JVM.
|
||||
public void SerializationTest()
|
||||
{
|
||||
for (int i = 0; i < 50; i++)
|
||||
|
@ -345,7 +345,6 @@ namespace MonoTests.System.Collections.Generic {
|
||||
#if !NET_4_0 // FIXME: the blob contains the 2.0 mscorlib version
|
||||
|
||||
[Test]
|
||||
[Category ("TargetJvmNotWorking")]
|
||||
public void SerializeTest ()
|
||||
{
|
||||
List <int> list = new List <int> ();
|
||||
@ -353,11 +352,7 @@ namespace MonoTests.System.Collections.Generic {
|
||||
list.Add (0);
|
||||
list.Add (7);
|
||||
|
||||
#if TARGET_JVM
|
||||
BinaryFormatter bf = (BinaryFormatter)vmw.@internal.remoting.BinaryFormatterUtils.CreateBinaryFormatter (false);
|
||||
#else
|
||||
BinaryFormatter bf = new BinaryFormatter ();
|
||||
#endif // TARGET_JVM
|
||||
MemoryStream ms = new MemoryStream ();
|
||||
bf.Serialize (ms, list);
|
||||
|
||||
@ -371,18 +366,13 @@ namespace MonoTests.System.Collections.Generic {
|
||||
#endif
|
||||
|
||||
[Test]
|
||||
[Category ("TargetJvmNotWorking")]
|
||||
public void DeserializeTest ()
|
||||
{
|
||||
MemoryStream ms = new MemoryStream ();
|
||||
ms.Write (_serializedList, 0, _serializedList.Length);
|
||||
ms.Position = 0;
|
||||
|
||||
#if TARGET_JVM
|
||||
BinaryFormatter bf = (BinaryFormatter)vmw.@internal.remoting.BinaryFormatterUtils.CreateBinaryFormatter (false);
|
||||
#else
|
||||
BinaryFormatter bf = new BinaryFormatter ();
|
||||
#endif // TARGET_JVM
|
||||
List<int> list = (List<int>) bf.Deserialize (ms);
|
||||
Assert.AreEqual (3, list.Count, "#1");
|
||||
Assert.AreEqual (5, list [0], "#2");
|
||||
|
Reference in New Issue
Block a user