public void TestStreamIsGzipForKnownExt()
        {
            var stream = new FileStreamMock("C:\\PAth\\pakjdkjd\\test.gz");

            var test = new FileReader(stream);
            test.Compression.ShouldBeEquivalentTo(CompressionScheme.GZip);
        }
        public void TestStreamIsNoCompressionForRandomFileExtension(string fileExt)
        {
            var stream = new FileStreamMock("C:\\PAth\\pakjdkjd\\test." + fileExt);

            var test = new FileReader(stream);
            test.Compression.ShouldBeEquivalentTo(CompressionScheme.None);
        }
        public void TestMoveNextDoesntWork(string testPath)
        {
            var stream = new FileStreamMock(testPath);
            var test = new FileReader(stream);
            var enumerator = test.GetEnumerator();

            enumerator.MoveNext().ShouldBeEquivalentTo(false);
        }
        public void TestResetDoesntWork(string testPath)
        {
            var stream = new FileStreamMock(testPath);
            var test = new FileReader(stream);
            var enumerator = test.GetEnumerator();

            Assert.Throws<InvalidOperationException>(() => enumerator.Reset());
        }