示例#1
0
        public void ContainsPathWithLongerPathShouldBeFalse()
        {
            var fileSystemItem = new FtpPath("/a/b/c", FileSystemType.Directory);

            Assert.False(fileSystemItem.ContainsPath(new FtpPath("/a/b/c/d", FileSystemType.Directory)));
        }
示例#2
0
        public void ContainsPathForSamePathWithSlashShouldBeTrue()
        {
            var fileSystemItem = new FtpPath("/a/b/c", FileSystemType.Directory);

            Assert.True(fileSystemItem.ContainsPath(new FtpPath("/a/b/c/", FileSystemType.Directory)));
        }
示例#3
0
        public void ContainsPathWithPartOfNameShouldBeFalse()
        {
            var fileSystemItem = new FtpPath("/a/bfolder", FileSystemType.Directory);

            Assert.False(fileSystemItem.ContainsPath(new FtpPath("/a/b", FileSystemType.Directory)));
        }