public void CutFolder_NoString() { //--------- Arrange var folder = ""; //--------- Act Assert.Throws <ArgumentException>(() => AzureStorageUtils.CutFolder(folder, "/")); }
public void CutFolder_OnlyContainer() { //--------- Arrange var folder = "container"; //--------- Act var folderParts = AzureStorageUtils.CutFolder(folder, "/"); //--------- Assert folderParts.ContainerName.Should().Be("container"); folderParts.Subfolder.Should().BeNull(); }