public void Initialize_Sets_DeflateStreamInstance()
 {
     var mockStream = MockRepository.GenerateMock<IStream>();
     mockStream.Stub(mo => mo.StreamInstance).Return(_fileStream);
     var instance = new DeflateStreamWrap();
     instance.Initialize(mockStream, CompressionMode.Compress);
     Assert.IsNotNull(instance.DeflateStreamInstance);
 }
Пример #2
0
        public IStream Synchronized(IStream stream)
        {
            var deflateStreamWrap = new DeflateStreamWrap();

            deflateStreamWrap.Initialize(Stream.Synchronized(stream.StreamInstance), _mode);

            return(deflateStreamWrap);
        }