You've already forked linux-packaging-mono
Imported Upstream version 4.0.0~alpha1
Former-commit-id: 806294f5ded97629b74c85c09952f2a74fe182d9
This commit is contained in:
@ -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
|
||||
|
||||
|
Reference in New Issue
Block a user