public void CanExtractNameWithMultipleFolders() { var expectedFolderName = "MyFolder"; var folderName = StorageItem.ExtractName("Folder1/Folder2/Folder3/MyFolder"); Assert.AreEqual(expectedFolderName, folderName); }
public void CanExtractNameWithJustSlash() { var expectedFolderName = string.Empty; var folderName = StorageItem.ExtractName("/"); Assert.AreEqual(expectedFolderName, folderName); }
public void CanExtractNameWithDoubleTrailingAndLeadingSlashes() { var expectedFolderName = "MyFolder"; var folderName = StorageItem.ExtractName("//MyFolder//"); Assert.AreEqual(expectedFolderName, folderName); }
public void CanExtractNameWithTrailingSlash() { var expectedFolderName = "myFolder"; var folderName = StorageItem.ExtractName("myFolder/"); Assert.AreEqual(expectedFolderName, folderName); }