C# Class System.IO.Compression.Tests.DeflateStreamTests

Show file Open project: dotnet/corefx

Public Methods

Method Description
CopyToAsync_Roundtrip_OutputMatchesInput_MemberData ( ) : IEnumerable

Private Methods

Method Description
BaseStream1 ( ) : void
BaseStream2 ( ) : void
CanDisposeBaseStream ( ) : void
CanDisposeDeflateStream ( ) : void
CanReadBaseStreamAfterDispose ( ) : Task
CompressCanWrite ( ) : void
CopyToAsyncArgumentValidation ( ) : void
CopyToAsync_Roundtrip_OutputMatchesInput ( byte expectedDecrypted, int copyBufferSize, Stream source ) : Task
CtorArgumentValidation ( ) : void
DecompressCanRead ( ) : void
DecompressFailsWithRealGzStream ( ) : Task
DisposedBaseStreamThrows ( ) : void
DoubleDispose ( ) : void
DoubleFlush ( ) : void
Flush ( ) : Task
FlushAsyncFailsAfterDispose ( ) : Task
FlushBeforeFirstWrites ( ) : Task
FlushBeforeFirstWrites ( bool useAsync, bool useGzip, int chunkSize, int totalSize, CompressionLevel level ) : Task
FlushFailsAfterDispose ( ) : void
FlushThenDispose ( ) : void
ModifyBaseStream ( ) : Task
Precancellation ( ) : void
ReadOnlyStreamThrowsOnCompress ( ) : void
ReadWriteArgumentValidation ( ) : void
RoundTripWithFlush ( ) : Task
RoundTripWithFlush ( bool useAsync, bool useGzip, int chunkSize, int totalSize, CompressionLevel level ) : Task
RoundtripCompressDecompress ( ) : Task
RoundtripCompressDecompress ( bool useAsync, bool useGzip, int chunkSize, int totalSize, CompressionLevel level ) : Task
Roundtrip_Write_ReadByte ( ) : void
SequentialReadsOnMemoryStream_Return_SameBytes ( ) : void
TestCtor ( CompressionLevel level, bool leaveOpen = null ) : void
TestCtors ( ) : void
TestLevelFastest ( ) : void
TestLevelNoCompression ( ) : void
TestLevelOptimial ( ) : void
TestSeekMethodsCompress ( ) : void
TestSeekMethodsDecompress ( ) : void
ValidateCompressedData ( bool useAsync, bool useGzip, int chunkSize, MemoryStream compressed, byte expected ) : Task

Given a MemoryStream of compressed data and a byte array of desired output, decompresses the stream and validates that it is equal to the expected array.

WrapNullReturningTasksStream ( ) : Task
WrapStreamReturningBadReadValues ( ) : Task
WriteAfterFlushing ( ) : Task
WriteAfterFlushing ( bool useAsync, bool useGzip, int chunkSize, int totalSize, CompressionLevel level ) : Task
WriteOnlyStreamThrowsOnDecompress ( ) : void
gzTestFile ( string fileName ) : string

Method Details

CopyToAsync_Roundtrip_OutputMatchesInput_MemberData() public static method

public static CopyToAsync_Roundtrip_OutputMatchesInput_MemberData ( ) : IEnumerable
return IEnumerable