示例#1
0
        public void CanExtractNameWithMultipleFolders()
        {
            var expectedFolderName = "MyFolder";
            var folderName         = StorageItem.ExtractName("Folder1/Folder2/Folder3/MyFolder");

            Assert.AreEqual(expectedFolderName, folderName);
        }
示例#2
0
        public void CanExtractNameWithJustSlash()
        {
            var expectedFolderName = string.Empty;
            var folderName         = StorageItem.ExtractName("/");

            Assert.AreEqual(expectedFolderName, folderName);
        }
示例#3
0
        public void CanExtractNameWithDoubleTrailingAndLeadingSlashes()
        {
            var expectedFolderName = "MyFolder";
            var folderName         = StorageItem.ExtractName("//MyFolder//");

            Assert.AreEqual(expectedFolderName, folderName);
        }
示例#4
0
        public void CanExtractNameWithTrailingSlash()
        {
            var expectedFolderName = "myFolder";
            var folderName         = StorageItem.ExtractName("myFolder/");

            Assert.AreEqual(expectedFolderName, folderName);
        }