예제 #1
0
        public void ShouldGetResourcesAsync()
        {
            // Arrange
            IFilesApi filesApi = CreateFilesApi();

            // Act
            List <StorageResource> resources = filesApi.GetResourcesAsync(ListingFlags.IncludeFiles | ListingFlags.IncludeFolders).Result.ToList();

            // Assert
            resources.Count.ShouldBe(4);
            resources.Count(x => x.Name == "applications").ShouldBe(1);
        }