public void EnumerateItems_ReturnsEmptySequence_IfNoFileSystemReturnsResults()
        {
            // Arrange
            var basePath    = "base-path";
            var fileSystem1 = Mock.Of <RazorProjectFileSystem>(
                f => f.EnumerateItems(basePath) == Enumerable.Empty <RazorProjectItem>());
            var fileSystem2 = Mock.Of <RazorProjectFileSystem>(
                f => f.EnumerateItems(basePath) == Enumerable.Empty <RazorProjectItem>());

            var compositeRazorProjectFileSystem = new CompositeRazorProjectFileSystem(new[] { fileSystem1, fileSystem2 });

            // Act
            var result = compositeRazorProjectFileSystem.EnumerateItems(basePath);

            // Assert
            Assert.Empty(result);
        }
        public void EnumerateItems_ReturnsResultsFromAllFileSystems()
        {
            // Arrange
            var basePath    = "base-path";
            var file1       = new TestRazorProjectItem("file1");
            var file2       = new TestRazorProjectItem("file2");
            var file3       = new TestRazorProjectItem("file3");
            var fileSystem1 = Mock.Of <RazorProjectFileSystem>(
                f => f.EnumerateItems(basePath) == new[] { file1 });
            var fileSystem2 = Mock.Of <RazorProjectFileSystem>(
                f => f.EnumerateItems(basePath) == Enumerable.Empty <RazorProjectItem>());
            var fileSystem3 = Mock.Of <RazorProjectFileSystem>(
                f => f.EnumerateItems(basePath) == new[] { file2, file3, });

            var compositeRazorProjectFileSystem = new CompositeRazorProjectFileSystem(new[] { fileSystem1, fileSystem2, fileSystem3 });

            // Act
            var result = compositeRazorProjectFileSystem.EnumerateItems(basePath);

            // Assert
            Assert.Equal(new[] { file1, file2, file3 }, result);
        }