Ejemplo n.º 1
0
        /// <summary>Tests read/seek/getPos/skipped opeation for input stream.</summary>
        /// <exception cref="System.Exception"/>
        private void TestChecker(FileSystem fileSys, bool readCS)
        {
            Path file = new Path("try.dat");

            WriteFile(fileSys, file);
            try
            {
                if (!readCS)
                {
                    fileSys.SetVerifyChecksum(false);
                }
                stm = fileSys.Open(file);
                CheckReadAndGetPos();
                CheckSeek();
                CheckSkip();
                //checkMark
                NUnit.Framework.Assert.IsFalse(stm.MarkSupported());
                stm.Close();
            }
            finally
            {
                if (!readCS)
                {
                    fileSys.SetVerifyChecksum(true);
                }
                CleanupFile(fileSys, file);
            }
        }