Skip to content

Add IFileSystem support to test fixtures #15

Merged
Arthurvdv merged 2 commits into
masterfrom
development
Apr 18, 2026
Merged

Add IFileSystem support to test fixtures #15
Arthurvdv merged 2 commits into
masterfrom
development

Conversation

@Arthurvdv

Copy link
Copy Markdown
Member

No description provided.

Arthurvdv and others added 2 commits April 18, 2026 16:54
Add FileSystem property to BaseTestFixtureConfig, allowing tests to
inject a virtual file system (e.g. MemoryFileSystem) into the
compilation. This enables testing analyzers that read workspace files
such as XLIFF translations or configuration files.

Changes:
- BaseTestFixtureConfig: new IFileSystem? FileSystem property
- BaseTestFixture: virtual FileSystem property
- AnalyzerTestFixture: inject via compilation.WithFileSystem() in GetDiagnostics()
- CodeFixTestFixture: inject via compilation.WithFileSystem() in GetAllReportedDiagnostics()
- All Configurable* fixtures: wire FileSystem from config
- README.md: document FileSystem option with MemoryFileSystem example
- Add filesystem-support instruction file

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
@Arthurvdv Arthurvdv merged commit fb6ae68 into master Apr 18, 2026
1 check passed
@Arthurvdv Arthurvdv deleted the development branch April 18, 2026 15:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant