示例#1
0
        public void GetSeekableResponseStreamTest()
        {
            FtpWebRequest request = (FtpWebRequest)WebRequest.Create(URL_FILE);

            request.Credentials = new NetworkCredential("anonymous", "*****@*****.**");
            request.Method      = WebRequestMethods.Ftp.DownloadFile;

            Stream stream = request.GetSeekableFileStream();

            Assert.IsInstanceOfType(stream, typeof(SeekableFtpFileStream));
        }