Imported Upstream version 4.0.0~alpha1

Former-commit-id: 806294f5ded97629b74c85c09952f2a74fe182d9
This commit is contained in:
Jo Shields
2015-04-07 09:35:12 +01:00
parent 283343f570
commit 3c1f479b9d
22469 changed files with 2931443 additions and 869343 deletions

View File

@ -8,7 +8,6 @@
// (C) 2004 Novell, Inc. <http://www.novell.com>
//
#if NET_2_0
using NUnit.Framework;
using System;
@ -91,6 +90,17 @@ namespace MonoTests.System.IO.Compression
decompressing.Close();
}
// https://bugzilla.xamarin.com/show_bug.cgi?id=22346
[Test]
public void CheckEmptyRead ()
{
byte [] dummy = new byte[1];
byte [] data = new byte[0];
MemoryStream backing = new MemoryStream (data);
DeflateStream compressing = new DeflateStream (backing, CompressionMode.Decompress);
compressing.Read (dummy, 0, 1);
}
[Test]
[ExpectedException (typeof (ArgumentNullException))]
public void CheckNullRead ()
@ -355,5 +365,4 @@ namespace MonoTests.System.IO.Compression
}
}
#endif