Ejemplo n.º 1
0
        public virtual void TestStreamType()
        {
            Path testPath = new Path(TestRootDir, "testStreamType");

            localFs.Create(testPath).Close();
            FSDataInputStream @in = null;

            localFs.SetVerifyChecksum(true);
            @in = localFs.Open(testPath);
            Assert.True("stream is input checker", @in.GetWrappedStream() is
                        FSInputChecker);
            localFs.SetVerifyChecksum(false);
            @in = localFs.Open(testPath);
            NUnit.Framework.Assert.IsFalse("stream is not input checker", @in.GetWrappedStream
                                               () is FSInputChecker);
        }