public void ContainsPathWithLongerPathShouldBeFalse() { var fileSystemItem = new FtpPath("/a/b/c", FileSystemType.Directory); Assert.False(fileSystemItem.ContainsPath(new FtpPath("/a/b/c/d", FileSystemType.Directory))); }
public void ContainsPathForSamePathWithSlashShouldBeTrue() { var fileSystemItem = new FtpPath("/a/b/c", FileSystemType.Directory); Assert.True(fileSystemItem.ContainsPath(new FtpPath("/a/b/c/", FileSystemType.Directory))); }
public void ContainsPathWithPartOfNameShouldBeFalse() { var fileSystemItem = new FtpPath("/a/bfolder", FileSystemType.Directory); Assert.False(fileSystemItem.ContainsPath(new FtpPath("/a/b", FileSystemType.Directory))); }