Example #1
0
        public void SetLengthThrowsForUnseekableFileStream()
        {
            string fileName = GetTestFilePath();

            using (FileStream fs = new UnseekableFileStream(fileName, FileMode.Create))
            {
                Assert.Throws <NotSupportedException>(() => fs.SetLength(1));
            }
        }