예제 #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)));
        }