Exemplo n.º 1
0
        public void CanExtractNameWithMultipleFolders()
        {
            var expectedFolderName = "MyFolder";
            var folderName         = StorageItem.ExtractName("Folder1/Folder2/Folder3/MyFolder");

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

            Assert.AreEqual(expectedFolderName, folderName);
        }
Exemplo n.º 3
0
        public void CanExtractNameWithDoubleTrailingAndLeadingSlashes()
        {
            var expectedFolderName = "MyFolder";
            var folderName         = StorageItem.ExtractName("//MyFolder//");

            Assert.AreEqual(expectedFolderName, folderName);
        }
Exemplo n.º 4
0
        public void CanExtractNameWithTrailingSlash()
        {
            var expectedFolderName = "myFolder";
            var folderName         = StorageItem.ExtractName("myFolder/");

            Assert.AreEqual(expectedFolderName, folderName);
        }