Пример #1
0
        public async Task TestFileFinder_FindFilesWithEmptySearchFolders()
        {
            var finder = new MockTestFileFinder(new List <string>());

            var files = await finder.FindAsync(new List <string> {
                "test-*.xml"
            });

            Assert.True(!files.Any());
        }
Пример #2
0
        public async Task TestFileFinder_FindFilesWithEmptyPattern()
        {
            var finder = new MockTestFileFinder(new List <string>
            {
                "/tmp"
            });

            var files = await finder.FindAsync(new List <string>());

            Assert.True(!files.Any());
        }
Пример #3
0
        public async Task TestFileFinder_FindFilesWithMatchingPattern()
        {
            var finder = new MockTestFileFinder(new List <string>
            {
                "/tmp"
            });

            var files = await finder.FindAsync(new List <string> {
                "test-*.xml"
            });

            Assert.True(files.Count() == 2);
        }