public void Combine2() { var util = new FtpUtilities(); String path = "ftp://folder/"; String file = "file"; Assert.AreEqual("ftp://folder/file", util.Combine(path, file)); }
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")); }
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)); }