Quantcast
Channel: SharpDevelop Community
Viewing all articles
Browse latest Browse all 1764

GZipTestSuite.ZeroLengthInputStream NUnit test fails...

$
0
0

I downloaded the 0.86.0 SharpZipLib source, and built the binaries against the .NET 4.0 Framework, using MSVS2010.  I also installed the .msi distribution of NUnit v2.6.1 and ran the tests in the SharpZipLibTests project.

The NUnit GZIP->GZipTestSuite->ZeroLengthInputStream test failed with the following information:

    ICSharpCode.SharpZipLib.Tests.GZip.GZipTestSuite.ZeroLengthInputStream:
       reading from an empty stream should cause an exception
       Expected: True
       But was:  False

And has the following StackTrace:

at ICSharpCode.SharpZipLib.Tests.GZip.GZipTestSuite.ZeroLengthInputStream()
 in C:\SDKs\SharpZipLib\SrcSamples\tests\GZip\GZipTests.cs:line 116

Digging down into GZipInputStream.ReadHeader(), lines 176 to 184 are what are causing the unit test to fail; instead of throwing an exception, the code is returning false for an empty stream.  I'm unsure if the unit test is outdated, or the code is incorrect, please fix the error.

Thank you.


Viewing all articles
Browse latest Browse all 1764

Trending Articles