public void Stream_SetStreamPosition_Test4()
        {
            using (var fs = new FileStream(Path.Combine(Environment.CurrentDirectory, @"TestFiles\gpl-3.0-3.txt"), FileMode.Open, FileAccess.Read))
             {
            var random = new Random();
            var checkBuffer = new byte[128];
            random.NextBytes(checkBuffer);

            var position = new StreamPosition(640, checkBuffer);
            Assert.AreEqual(false, fs.SetStreamPosition(position));
            Assert.AreEqual(0, fs.Position);
             }
        }
        public void Stream_SetStreamPosition_Test3()
        {
            using (var fs = new FileStream(Path.Combine(Environment.CurrentDirectory, @"TestFiles\gpl-3.0-3.txt"), FileMode.Open, FileAccess.Read))
             {
            fs.Seek(512, SeekOrigin.Current);
            var checkBuffer = new byte[128];
            fs.Read(checkBuffer, 0, checkBuffer.Length);
            var position = new StreamPosition(640, checkBuffer);

            fs.Seek(0, SeekOrigin.Begin);
            Assert.AreEqual(true, fs.SetStreamPosition(position));
            Assert.AreEqual(640, fs.Position);
             }
        }