Esempio n. 1
0
        public void Combine2()
        {
            var    util = new FtpUtilities();
            String path = "ftp://folder/";
            String file = "file";

            Assert.AreEqual("ftp://folder/file", util.Combine(path, file));
        }
Esempio n. 2
0
        public void Combine_ftp()
        {
            var util = new FtpUtilities();

            Assert.AreEqual("ftp://www.nic.funet.fi/pub/unix/openbsd/readme", util.Combine("ftp://www.nic.funet.fi/pub/unix/OpenBSD", "README"));
        }
Esempio n. 3
0
        public void Combine1()
        {
            var site = "ftp://site/address.local/10";
            var file = "file.txt";

            Assert.AreEqual(string.Format("{0}/{1}", site, file), FileSystem.Combine(site, file));
        }