Пример #1
0
        public void CutFolder_NoString()
        {
            //--------- Arrange
            var folder = "";

            //--------- Act
            Assert.Throws <ArgumentException>(() => AzureStorageUtils.CutFolder(folder, "/"));
        }
Пример #2
0
        public void CutFolder_OnlyContainer()
        {
            //--------- Arrange
            var folder = "container";

            //--------- Act
            var folderParts = AzureStorageUtils.CutFolder(folder, "/");

            //--------- Assert
            folderParts.ContainerName.Should().Be("container");
            folderParts.Subfolder.Should().BeNull();
        }