File tree Expand file tree Collapse file tree 1 file changed +19
-0
lines changed
src/UmbracoFileSystemProviders.Azure.Tests Expand file tree Collapse file tree 1 file changed +19
-0
lines changed Original file line number Diff line number Diff line change @@ -628,5 +628,24 @@ public void TestGetSubDirectoriesAndFiles()
628
628
// Tidy up after test
629
629
provider . DeleteDirectory ( "forms" ) ;
630
630
}
631
+
632
+ /// <summary>
633
+ /// Asserts that the file system correctly returns a sequence of directories in the
634
+ /// correct format when there are no subdirectories.
635
+ /// </summary>
636
+ [ Test ]
637
+ public void TestGetSubDirectoriesNone ( )
638
+ {
639
+ // Arrange
640
+ AzureBlobFileSystem provider = this . CreateAzureBlobFileSystem ( containerName : "forms-data" ) ;
641
+ provider . AddFile ( "forms/b5e2fab3-040d-4328-ac74-cf7f7ebe3918.json" , Stream . Null ) ;
642
+
643
+ // Act
644
+ IEnumerable < string > actual = provider . GetDirectories ( "forms" ) ;
645
+
646
+ // Assert
647
+ string [ ] expected = { } ;
648
+ Assert . IsTrue ( expected . SequenceEqual ( actual ) ) ;
649
+ }
631
650
}
632
651
}
You can’t perform that action at this time.
0 commit comments