UnitTests.cs revision 1b33c96954667ba382fa595baf7b31290bfdd517
//
// � Copyright Henrik Ravn 2004
//
// Use, modification and distribution are subject to the Boost Software License, Version 1.0.
// (See accompanying file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
//
using System;
using System.Collections;
// uncomment the define below to include unit tests
//#define nunit
#if nunit
// Unit tests for the DotZLib class library
// ----------------------------------------
//
// Use this with NUnit 2 from http://www.nunit.org
//
namespace DotZLibTests
{
using DotZLib;
// helper methods
internal class Utils
{
{
return false;
return false;
return true;
}
}
public class CircBufferTests
{
[Test]
public void SinglePutGet()
{
}
[Test]
public void BlockPutGet()
{
}
}
public class ChecksumTests
{
[Test]
public void CRC32_Null()
{
}
[Test]
public void CRC32_Data()
{
crc32 = new CRC32Checksum();
}
[Test]
public void Adler_Null()
{
}
[Test]
public void Adler_Data()
{
adler = new AdlerChecksum();
}
}
public class InfoTests
{
[Test]
public void Info_Version()
{
}
}
public class DeflateInflateTests
{
[Test]
public void Deflate_Init()
{
{
}
}
private uint adler1;
private uint adler2;
{
for (int i = 0; i < count; ++i)
}
[Test]
public void Deflate_Compress()
{
byte[] testData = new byte[35000];
testData[i] = 5;
{
}
}
[Test]
public void Inflate_Init()
{
{
}
}
{
for (int i = 0; i < count; ++i)
}
[Test]
public void Inflate_Expand()
{
{
}
}
}
public class GZipStreamTests
{
[Test]
public void GZipStream_WriteRead()
{
{
}
{
string s = reader.ReadString();
double d = reader.ReadDouble();
}
}
}
}