public void FiltersExcludedFiles(string filename, FileAttributes attributes, ExclusionFilters filters, bool excluded) { var fileInfo = new FileInfo(Path.Combine(_fileSystem.RootPath, filename)); _fileSystem.CreateFile(fileInfo); fileInfo.Attributes = attributes; Assert.Equal(excluded, FileSystemInfoHelper.IsExcluded(_fileSystem.GetFile(filename), filters)); }