Skip to content

Conversation

@dependabot
Copy link
Contributor

@dependabot dependabot bot commented on behalf of github Dec 15, 2025

Updated NUnit.Analyzers from 4.10.0 to 4.11.2.

Release notes

Sourced from NUnit.Analyzers's releases.

4.11.2

NUnit Analyzers 4.11.2 - November 2, 2025

This release of the NUnit Analyzers fixes a problem in the NUnit2057 analyzer for unnecessary use of lambda
expressions. The release also extends NUnit2021 so that it can determining if Is.NaN or Is.Not.NaN constraints
are used on incompatible types.

The release contains contributions from the following users (in alphabetical order):

  • @​MaceWindu
  • @​manfred-brands
  • @​stevenaw

Issues Resolved

Features and Enhancements

  • #​929 Alert when using Is.NaN or Is.Not.NaN on an incompatible type

Bugs

  • #​945 [NUnit2057] Reported for Throws assert

4.11.1

NUnit Analyzers 4.11.1 - October 30, 2025

This release of the NUnit Analyzers fixes a regression related to the analysis of nullable enum parameters in
NUnit1001 and NUnit1031. The release also contains a new analyzer and codefix for unnecessary usage of lambda
expressions in asserts.

The release contains contributions from the following users (in alphabetical order):

  • @​MaceWindu
  • @​maksim-sovkov
  • @​manfred-brands

Issues Resolved

Features and Enhancements

  • #​927 Add new rule for unnecessary use of lambda expressions

Bugs

  • #​939 NUnit1001 - false positive for arguments with nullable enum parameters
  • #​938 [NUnit1031] False positive for nullable structs

4.11.0

NUnit Analyzers 4.11 - October 28, 2025

This release of the NUnit Analyzers includes improvements and fixes related to IDisposable handling and initialization
in SetUp and OneTimeSetUp methods. It also introduces the ability to configure additional methods that should be
treated as SetUp and TearDown methods by the analyzers. This can be done in the .editorconfig, and there are four
configurations for this:

  • dotnet_diagnostic.NUnit.additional_setup_methods
  • dotnet_diagnostic.NUnit.additional_teardown_methods
  • dotnet_diagnostic.NUnit.additional_one_time_setup_methods
  • dotnet_diagnostic.NUnit.additional_one_time_teardown_methods

Each configuration accepts a list of method names, separated by commas, semicolons, or spaces. For example:

dotnet_diagnostic.NUnit.additional_setup_methods = CustomSetup, MyInit

As in recent releases, a major part of this work was contributed by @​manfred-brands.

The release contains contributions from the following users (in alphabetical order):

  • @​AlisonAMorrison
  • @​BodrickLight
  • @​cbersch
  • @​manfred-brands
  • @​mikkelbu
  • @​PiotrKlecha
  • @​sbe-schleupen

Issues Resolved

Features and Enhancements

  • #​921 NUnit1032 - disposals in overridden methods not detected
  • #​919 NUnit1032/NUnit3002 - local functions not analyzed
  • #​918 NUnit2045 - false positive for inline usings
  • #​911 NUnit3002 doesn't recognize the using statement.
  • #​910 using declarations not recognized by NUnit2045

Bugs

  • #​922 NUnit1001 - false positive for arguments with generic parameters
  • #​914 Wrong position of NUnit1001 diagnostic for TestCase with four parameters or more

Tooling, Process, and Documentation

  • #​926 chore: Bump NUnit3TestAdapter
  • #​908 chore: bump version
  • #​885 Bump to NUnit version 4.4 when this is released

Commits viewable in compare view.

Updated NUnit3TestAdapter from 5.2.0 to 6.0.0.

Release notes

Sourced from NUnit3TestAdapter's releases.

6.0.0

See release notes

Commits viewable in compare view.

Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.


Dependabot commands and options

You can trigger Dependabot actions by commenting on this PR:

  • @dependabot rebase will rebase this PR
  • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
  • @dependabot merge will merge this PR after your CI passes on it
  • @dependabot squash and merge will squash and merge this PR after your CI passes on it
  • @dependabot cancel merge will cancel a previously requested merge and block automerging
  • @dependabot reopen will reopen this PR if it is closed
  • @dependabot close will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
  • @dependabot show <dependency name> ignore conditions will show all of the ignore conditions of the specified dependency
  • @dependabot ignore <dependency name> major version will close this group update PR and stop Dependabot creating any more for the specific dependency's major version (unless you unignore this specific dependency's major version or upgrade to it yourself)
  • @dependabot ignore <dependency name> minor version will close this group update PR and stop Dependabot creating any more for the specific dependency's minor version (unless you unignore this specific dependency's minor version or upgrade to it yourself)
  • @dependabot ignore <dependency name> will close this group update PR and stop Dependabot creating any more for the specific dependency (unless you unignore this specific dependency or upgrade to it yourself)
  • @dependabot unignore <dependency name> will remove all of the ignore conditions of the specified dependency
  • @dependabot unignore <dependency name> <ignore condition> will remove the ignore condition of the specified dependency and ignore conditions

Bumps NUnit.Analyzers from 4.10.0 to 4.11.2
Bumps NUnit3TestAdapter from 5.2.0 to 6.0.0

---
updated-dependencies:
- dependency-name: NUnit.Analyzers
  dependency-version: 4.11.2
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: test-packages
- dependency-name: NUnit3TestAdapter
  dependency-version: 6.0.0
  dependency-type: direct:production
  update-type: version-update:semver-major
  dependency-group: test-packages
...

Signed-off-by: dependabot[bot] <support@github.com>
@dependabot dependabot bot added .NET Pull requests that update .NET code dependencies Pull requests that update a dependency file labels Dec 15, 2025
@ElanHasson
Copy link
Contributor

Closing as superseded - these package updates have been incorporated into a combined .NET 10 upgrade commit.

@ElanHasson ElanHasson closed this Dec 21, 2025
@dependabot @github
Copy link
Contributor Author

dependabot bot commented on behalf of github Dec 21, 2025

This pull request was built based on a group rule. Closing it will not ignore any of these versions in future pull requests.

To ignore these dependencies, configure ignore rules in dependabot.yml

@dependabot dependabot bot deleted the dependabot/nuget/test-packages-1c9adb6cd2 branch December 21, 2025 17:06
ElanHasson added a commit that referenced this pull request Dec 21, 2025
- Upgrade target framework from net9.0 to net10.0
- Update CI/CD workflows to use .NET 10.0.x SDK
- Upgrade packages:
  - Microsoft.CodeAnalysis.CSharp.Scripting: 4.14.0 → 5.0.0
  - Microsoft.Extensions.Hosting: 10.0.0-rc.2 → 10.0.1
  - Microsoft.NET.Test.Sdk: 18.0.0 → 18.0.1
  - NuGet.Protocol: 6.14.0 → 7.0.1
  - NuGet.Resolver: 6.14.0 → 7.0.1
  - NUnit.Analyzers: 4.10.0 → 4.11.2
  - NUnit3TestAdapter: 5.2.0 → 6.0.0
- Remove unnecessary System.Formats.Asn1 package (now built into .NET 10)
- Update tests to work with NUnit 6.0 console output behavior
- Update console output capture to use synchronized TextWriter

This commit supersedes PRs #36, #37, #39, and #40.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
ElanHasson added a commit that referenced this pull request Dec 21, 2025
* Upgrade to .NET 10 and update all packages

- Upgrade target framework from net9.0 to net10.0
- Update CI/CD workflows to use .NET 10.0.x SDK
- Upgrade packages:
  - Microsoft.CodeAnalysis.CSharp.Scripting: 4.14.0 → 5.0.0
  - Microsoft.Extensions.Hosting: 10.0.0-rc.2 → 10.0.1
  - Microsoft.NET.Test.Sdk: 18.0.0 → 18.0.1
  - NuGet.Protocol: 6.14.0 → 7.0.1
  - NuGet.Resolver: 6.14.0 → 7.0.1
  - NUnit.Analyzers: 4.10.0 → 4.11.2
  - NUnit3TestAdapter: 5.2.0 → 6.0.0
- Remove unnecessary System.Formats.Asn1 package (now built into .NET 10)
- Update tests to work with NUnit 6.0 console output behavior
- Update console output capture to use synchronized TextWriter

This commit supersedes PRs #36, #37, #39, and #40.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>

* Fix tests for AssemblyLoadContext isolation in .NET 10

- Add AssemblyLoadContext workaround for CSharpScript compatibility
- Update tests to verify execution success and return values instead of
  console output (Console.SetOut doesn't propagate across ALCs)
- Change timeout test to use Task.Delay which respects cancellation
- Minor cleanup in CSharpEvalTools (use CancelAsync)

See: dotnet/roslyn#45197 (comment)

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>

---------

Co-authored-by: Claude Opus 4.5 <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

dependencies Pull requests that update a dependency file .NET Pull requests that update .NET code

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants