public void TestCreation1() { var ftpDirectory = FtpDirectory.Create("/foo/"); var directoryName = ftpDirectory.DirectoryName; Assert.AreEqual("foo", directoryName); }
public void TestCreation5() { var ftpDirectory = FtpDirectory.Create("/foo1/foo2/foo3"); var parentFtpDirectory = ftpDirectory.GetParentFtpDirectory(); var parentDirectoryName = parentFtpDirectory.DirectoryName; Assert.AreEqual("foo2", parentDirectoryName); }
public void TestCreation4() { var rootFtpDirectory = FtpDirectory.Root; var ftpDirectory = FtpDirectory.Create(rootFtpDirectory, "test2"); var directoryName = ftpDirectory.DirectoryName; Assert.AreEqual("test2", directoryName); }
public void TestDirectoryChanges3() { var sourceFtpDirectory = FtpDirectory.Create("/foo/foo1"); var targetFtpDirectory = FtpDirectory.Create("/foo/foo2/foo3"); var directoryChanges = FtpClientHelper.DirectoryChanges(sourceFtpDirectory, targetFtpDirectory); var joinedDirectoryChanges = string.Join(",", directoryChanges); Assert.AreEqual("..,foo2,foo3", joinedDirectoryChanges); }