Skip to content

Conversation

@stevenaw
Copy link
Member

@stevenaw stevenaw commented Dec 16, 2025

Fixes #1120

The PR also:

  • Moves existing TestFixtureSource code samples into snippets
    • I have put each in a wrapper class to allow test snippets to reuse class and property names between examples to improve comparability of the different "forms" supported by TestFixtureSource.
  • Fixes what seems to be a few copy-paste errors in the TestFixtureSource documentation which refer instead to test cases and TestCaseSource.
  • Bumps the snippets projects to .NET 9 as codespaces was reporting an issue with building them. Codespaces reported only the .NET 9 SDK was installed when I ran dotnet --list-sdks
    • Please let me know if you'd like this adjusted or reverted-

@stevenaw stevenaw changed the title Add documenation for TestFixtureSource TypAargs and move examples into snippets Add documenation for TestFixtureSource TypeArgs and move examples into snippets Dec 16, 2025
@stevenaw stevenaw marked this pull request as ready for review December 16, 2025 17:27
@stevenaw stevenaw changed the title Add documenation for TestFixtureSource TypeArgs and move examples into snippets Add documentation for TestFixtureSource TypeArgs and move examples into snippets Dec 16, 2025
@SeanKilleen
Copy link
Member

This looks great, thanks! 🎉

@SeanKilleen SeanKilleen merged commit 956978f into nunit:master Dec 17, 2025
7 checks passed
github-actions bot pushed a commit that referenced this pull request Dec 17, 2025
…to snippets (#1121)

* Add documenation for testfituresource typeargs and move examples into snippets

* Update docs/articles/nunit/writing-tests/attributes/testfixturesource.md 956978f
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.

Document TypeArgs property on TestFixtureSource

3 participants