-
Notifications
You must be signed in to change notification settings - Fork 882
Commit f544c59
authored
Update dependency NUnit.Analyzers to v4 (#1994)
This PR contains the following updates:
| Package | Type | Update | Change |
|---|---|---|---|
| [NUnit.Analyzers](https://redirect.github.com/nunit/nunit.analyzers) |
nuget | major | `3.10.0` -> `4.6.0` |
---
> [!WARNING]
> Some dependencies could not be looked up. Check the Dependency
Dashboard for more information.
---
### Release Notes
<details>
<summary>nunit/nunit.analyzers (NUnit.Analyzers)</summary>
###
[`v4.6.0`](https://redirect.github.com/nunit/nunit.analyzers/releases/tag/4.6.0):
NUnit Analyzers 4.6 - January 9, 2025
[Compare
Source](https://redirect.github.com/nunit/nunit.analyzers/compare/4.5.0...4.6.0)
NUnit Analyzers 4.6 - January 9, 2025
This release contains two improvements: Allowing `NUnit1001` to
understand `DateOnly` and `TimeOnly` parameters in
`TestCaseUsage` and making `NUnit2045` support
`Assert.EnterMultipleScope` (introduced in NUnit version 4.2).
The release contains contributions from the following users (in
alphabetical order):
- [@​Dreamescaper](https://redirect.github.com/Dreamescaper)
- [@​manfred-brands](https://redirect.github.com/manfred-brands)
- [@​mikkelbu](https://redirect.github.com/mikkelbu)
Issues Resolved
Features and Enhancements
-
[#​820](https://redirect.github.com/nunit/nunit.analyzers/issues/820)
NUnit1001 compains about DateOnly parameters
-
[#​769](https://redirect.github.com/nunit/nunit.analyzers/issues/769)
Recognized the new Assert.EnterMultipleScope() concept.
Tooling, Process, and Documentation
-
[#​829](https://redirect.github.com/nunit/nunit.analyzers/issues/829)
chore: Bump year to 2025 in copyrights
-
[#​823](https://redirect.github.com/nunit/nunit.analyzers/issues/823)
chore: Bump cake.tool to version 4
-
[#​822](https://redirect.github.com/nunit/nunit.analyzers/issues/822)
chore: Bump NUnit to 4.3.2
-
[#​818](https://redirect.github.com/nunit/nunit.analyzers/issues/818)
chore: Replace "buildstats.info" with "img.shields.io"
-
[#​815](https://redirect.github.com/nunit/nunit.analyzers/issues/815)
chore: bump version
###
[`v4.5.0`](https://redirect.github.com/nunit/nunit.analyzers/releases/tag/4.5.0):
NUnit Analyzers 4.5 - December 22, 2024
[Compare
Source](https://redirect.github.com/nunit/nunit.analyzers/compare/4.4.0...4.5.0)
NUnit Analyzers 4.5 - December 22, 2024
The release primarily fixes a problem with the NUnit Analyzers when used
with NUnit 4.3.1 - see
[#​811](https://redirect.github.com/nunit/nunit.analyzers/issues/811)
for more
information. In additional, we have also added some smaller improvements
and bug fixes.
The release contains contributions from the following users (in
alphabetical order):
- [@​manfred-brands](https://redirect.github.com/manfred-brands)
- [@​mikkelbu](https://redirect.github.com/mikkelbu)
- [@​RenderMichael](https://redirect.github.com/RenderMichael)
- [@​zlepper](https://redirect.github.com/zlepper)
Issues Resolved
Features and Enhancements
-
[#​811](https://redirect.github.com/nunit/nunit.analyzers/issues/811)
NUnit2021 ignores cast operation since NUnit 4.3.1
-
[#​801](https://redirect.github.com/nunit/nunit.analyzers/issues/801)
Allow NUnit2005 to recognize Is.Empty
Bugs
-
[#​794](https://redirect.github.com/nunit/nunit.analyzers/issues/794)
AD0001: Occasional InvalidOperationException error in analyzer in IDE
Tooling, Process, and Documentation
-
[#​808](https://redirect.github.com/nunit/nunit.analyzers/issues/808)
chore: Correct typo
-
[#​806](https://redirect.github.com/nunit/nunit.analyzers/issues/806)
Add information about
dotnet_diagnostic.NUnit1032.additional_dispose_methods to the docs
-
[#​795](https://redirect.github.com/nunit/nunit.analyzers/issues/795)
chore(deps): Bump Microsoft.NET.Test.Sdk from 17.11.1 to 17.12.0
-
[#​793](https://redirect.github.com/nunit/nunit.analyzers/issues/793)
chore: bump version
###
[`v4.4.0`](https://redirect.github.com/nunit/nunit.analyzers/releases/tag/4.4.0):
NUnit Analyzers 4.4 - November 13, 2024
[Compare
Source](https://redirect.github.com/nunit/nunit.analyzers/compare/4.3.0...4.4.0)
NUnit Analyzers 4.4 - November 13, 2024
This release of the NUnit Analyzers adds handling of
`Assert.IsAssignableFrom`/`Assert.IsNotAssignableFrom` and
`Assert.Positive`/`Assert.Negative`. Also insertion of trivia for code
fixes for `NUnit2007` and `NUnit2046`
have been improved.
The release contains contributions from the following users (in
alphabetical order):
- [@​manfred-brands](https://redirect.github.com/manfred-brands)
- [@​MCPtz](https://redirect.github.com/MCPtz)
- [@​mikkelbu](https://redirect.github.com/mikkelbu)
- [@​verdie-g](https://redirect.github.com/verdie-g)
Issues Resolved
Features and Enhancements
-
[#​790](https://redirect.github.com/nunit/nunit.analyzers/issues/790)
NUnit.Analyzers 4.3.0 missed an Assert.IsAssignableFrom that caused a
build error after upgrading to latest NUnit 4.2.2
-
[#​789](https://redirect.github.com/nunit/nunit.analyzers/issues/789)
NUnit.Analyzers 4.3.0 missed an Assert.Positive that caused a build
error after upgrading to latest NUnit 4.2.2
Bugs
-
[#​784](https://redirect.github.com/nunit/nunit.analyzers/issues/784)
Fix trivia for NUnit2046
-
[#​783](https://redirect.github.com/nunit/nunit.analyzers/issues/783)
NUnit2007 doesn't apply trivia correctly
Tooling, Process, and Documentation
-
[#​788](https://redirect.github.com/nunit/nunit.analyzers/issues/788)
chore: Bump NUnit to version 4.2.2
-
[#​785](https://redirect.github.com/nunit/nunit.analyzers/issues/785)
chore(deps): Bump NUnit3TestAdapter from 4.5.0 to 4.6.0
-
[#​780](https://redirect.github.com/nunit/nunit.analyzers/issues/780)
chore(deps): Bump CSharpIsNullAnalyzer from 0.1.495 to 0.1.593
-
[#​778](https://redirect.github.com/nunit/nunit.analyzers/issues/778)
chore(deps): Bump Microsoft.NET.Test.Sdk from 17.10.0 to 17.11.1
-
[#​776](https://redirect.github.com/nunit/nunit.analyzers/issues/776)
chore: bump version
-
[#​775](https://redirect.github.com/nunit/nunit.analyzers/issues/775)
chore: Update release notes
###
[`v4.3.0`](https://redirect.github.com/nunit/nunit.analyzers/releases/tag/4.3.0):
NUnit Analyzers 4.3 - August 9, 2024
[Compare
Source](https://redirect.github.com/nunit/nunit.analyzers/compare/4.2.0...4.3.0)
NUnit Analyzers 4.3 - August 9, 2024
This release of the NUnit Analyzers contains some bug fixes to existing
analyzers and code fixes - among other
improvements to trivia when using the code fix of NUnit2049.
For new features we now warn against using `TestContext.Write` as this
will be obsolete in NUnit at some point;
NUnit1001 now recognises and check generic TestCase attributes; and we
have added a new analyzer and code fix for
simplifying usages of `ValuesAttribute`.
The release contains contributions from the following users (in
alphabetical order):
-
[@​andrewimcclement](https://redirect.github.com/andrewimcclement)
- [@​Bartleby2718](https://redirect.github.com/Bartleby2718)
- [@​DrPepperBianco](https://redirect.github.com/DrPepperBianco)
- [@​KaiBNET](https://redirect.github.com/KaiBNET)
- [@​maettu-this](https://redirect.github.com/maettu-this)
- [@​manfred-brands](https://redirect.github.com/manfred-brands)
- [@​mikkelbu](https://redirect.github.com/mikkelbu)
- [@​RenderMichael](https://redirect.github.com/RenderMichael)
- [@​SeanKilleen](https://redirect.github.com/SeanKilleen)
- [@​trampster](https://redirect.github.com/trampster)
Issues Resolved
Features and Enhancements
-
[#​770](https://redirect.github.com/nunit/nunit.analyzers/issues/770)
Add rule to detect calls to TestContext.Write methods and CodeFix to
replace usages with Out.Write
-
[#​767](https://redirect.github.com/nunit/nunit.analyzers/issues/767)
Augment NUnit1001 to recognized and check generic TestCase attributes
-
[#​755](https://redirect.github.com/nunit/nunit.analyzers/issues/755)
New diagnostic: The Values attribute can be simplified.
Bugs
-
[#​766](https://redirect.github.com/nunit/nunit.analyzers/issues/766)
Error when TearDown method is defined in partial test classes - Syntax
node is not within syntax tree
-
[#​743](https://redirect.github.com/nunit/nunit.analyzers/issues/743)
NUnit1032 (missing Dispose), if dispose is wrapped in "(… as
IDisposable)?.Dispose()"
-
[#​739](https://redirect.github.com/nunit/nunit.analyzers/issues/739)
Null suppression does not work when Assert is fully qualified
-
[#​713](https://redirect.github.com/nunit/nunit.analyzers/issues/713)
Code fix for NUnit2049 places the comma at a wrong place and messes up
indentation bug
Tooling, Process, and Documentation
-
[#​764](https://redirect.github.com/nunit/nunit.analyzers/issues/764)
Update the solution file
-
[#​761](https://redirect.github.com/nunit/nunit.analyzers/issues/761)
Update nunit.analyzers.nuspec to specify that NUnit.Analyzers v4 is
intended to be used with NUnit 4.
-
[#​756](https://redirect.github.com/nunit/nunit.analyzers/issues/756)
error NUnit1032 is incorrect when InstancePerTestCase and constructor is
used to initialize IDisposible
-
[#​741](https://redirect.github.com/nunit/nunit.analyzers/issues/741)
chore(deps): Bump Microsoft.NET.Test.Sdk from 17.9.0 to 17.10.0 in /src
-
[#​737](https://redirect.github.com/nunit/nunit.analyzers/issues/737)
Update NUnit2013.md to fix code block
-
[#​736](https://redirect.github.com/nunit/nunit.analyzers/issues/736)
chore: bump version
-
[#​734](https://redirect.github.com/nunit/nunit.analyzers/issues/734)
Why dropping composite message formatting support also for
Assert.Pass/Fail/... where there are no actual and constraint
parameters?
###
[`v4.2.0`](https://redirect.github.com/nunit/nunit.analyzers/releases/tag/4.2.0):
NUnit Analyzers 4.2 - April 24, 2024
[Compare
Source](https://redirect.github.com/nunit/nunit.analyzers/compare/4.1.0...4.2.0)
NUnit Analyzers 4.2 - April 24, 2024
This release of the Analyzers extends NUnit2050 to also cover `Assume`
and Nunit1032 to consider dispose of a type
having explicit interface implementation. Furthermore, named parameters
are now handled correctly codefixes for
classical asserts, and NUnit2010 improves the logic for determining
`Equals` methods.
The release contains contributions from the following users (in
alphabetical order):
- [@​Bartleby2718](https://redirect.github.com/Bartleby2718)
- [@​hazzik](https://redirect.github.com/hazzik)
- [@​maettu-this](https://redirect.github.com/maettu-this)
- [@​manfred-brands](https://redirect.github.com/manfred-brands)
- [@​matode](https://redirect.github.com/matode)
- [@​mikkelbu](https://redirect.github.com/mikkelbu)
Issues Resolved
Features and Enhancements
-
[#​731](https://redirect.github.com/nunit/nunit.analyzers/issues/731)
Add test for wrapping conditional expression in parenthesis for
NUnit2050
-
[#​720](https://redirect.github.com/nunit/nunit.analyzers/issues/720)
Replace UpdateStringFormatToFormattableString with String.Format
-
[#​719](https://redirect.github.com/nunit/nunit.analyzers/issues/719)
NUnit2050 should cover Assume
-
[#​710](https://redirect.github.com/nunit/nunit.analyzers/issues/710)
Nunit1032 - consider dispose of a type having explicit interface
implementation
Bugs
-
[#​728](https://redirect.github.com/nunit/nunit.analyzers/issues/728)
NUnit2010 - do not consider Equals call if it doesn't override
Object.Equals
-
[#​712](https://redirect.github.com/nunit/nunit.analyzers/issues/712)
\[bug] Code fix for NUnit2005 does not correctly fix Assert.AreEqual if
named parameters are used in unexpected order
Tooling, Process, and Documentation
-
[#​733](https://redirect.github.com/nunit/nunit.analyzers/issues/733)
Missing full stops added to NUnit2050
-
[#​722](https://redirect.github.com/nunit/nunit.analyzers/issues/722)
Use Markdown for CHANGES
-
[#​708](https://redirect.github.com/nunit/nunit.analyzers/issues/708)
chore: bump-version
###
[`v4.1.0`](https://redirect.github.com/nunit/nunit.analyzers/releases/tag/4.1.0):
NUnit Analyzers 4.1 - March 16, 2024
[Compare
Source](https://redirect.github.com/nunit/nunit.analyzers/compare/4.0.1...4.1.0)
NUnit Analyzers 4.1 - March 16, 2024
This release of the Analyzers extends the suppression of nullable
warnings to also respect assumptions -
expressed via `Assume.That`. Also nullable warnings are suppressed even
in the context of the
null-forgiving operator `!`, and NUnit2010 is extended to also cover
`is` pattern expressions - e.g.
`is null` and more general integer patterns as `is < 0 or >= 1`.
The release contains contributions from the following users (in
alphabetical order):
- [@​lahma](https://redirect.github.com/lahma)
- [@​manfred-brands](https://redirect.github.com/manfred-brands)
- [@​mikkelbu](https://redirect.github.com/mikkelbu)
- [@​RenderMichael](https://redirect.github.com/RenderMichael)
- [@​TheBigNeo](https://redirect.github.com/TheBigNeo)
- [@​verdie-g](https://redirect.github.com/verdie-g)
Issues Resolved
Features and Enhancements
-
[#​693](https://redirect.github.com/nunit/nunit.analyzers/issues/693)
Possibly Null Reference Warning should be suppressed for Assume
-
[#​691](https://redirect.github.com/nunit/nunit.analyzers/issues/691)
Extent rule NUnit2010 to detect 'is null'
-
[#​679](https://redirect.github.com/nunit/nunit.analyzers/issues/679)
Null suppression doesn't work when the body has a null suppression
Bugs
-
[#​700](https://redirect.github.com/nunit/nunit.analyzers/issues/700)
CodeFix for Assert with null message causes ambiguous code.
-
[#​689](https://redirect.github.com/nunit/nunit.analyzers/issues/689)
Incorrect constraint model transformation for named parameters
Tooling, Process, and Documentation
-
[#​697](https://redirect.github.com/nunit/nunit.analyzers/issues/697)
chore: Bump NUnit to version 4.1.0
-
[#​694](https://redirect.github.com/nunit/nunit.analyzers/issues/694)
Switch to using license expression
-
[#​690](https://redirect.github.com/nunit/nunit.analyzers/issues/690)
chore(deps): Bump Microsoft.NET.Test.Sdk from 17.8.0 to 17.9.0
-
[#​687](https://redirect.github.com/nunit/nunit.analyzers/issues/687)
chore: Update release notes
###
[`v4.0.1`](https://redirect.github.com/nunit/nunit.analyzers/blob/HEAD/CHANGES.md#NUnit-Analyzers-401---February-1-2024)
[Compare
Source](https://redirect.github.com/nunit/nunit.analyzers/compare/4.0.0...4.0.1)
Small release that fixes a problem with the 4.0 release when combining
`TestCaseSource` and `CancelAfter`.
The release contains contributions from the following users (in
alphabetical order):
- [@​manfred-brands](https://redirect.github.com/manfred-brands)
- [@​mikkelbu](https://redirect.github.com/mikkelbu)
- [@​richardissimo](https://redirect.github.com/richardissimo)
Issues Resolved
Bugs
-
[#​685](https://redirect.github.com/nunit/nunit.analyzers/issues/685)
error NUnit1029: The TestCaseSource provides '1' parameter(s), but the
Test method expects '1' parameter(s)
Tooling, Process, and Documentation
-
[#​684](https://redirect.github.com/nunit/nunit.analyzers/issues/684)
chore: bump-version
###
[`v4.0.0`](https://redirect.github.com/nunit/nunit.analyzers/releases/tag/4.0.0):
NUnit Analyzers 4.0
[Compare
Source](https://redirect.github.com/nunit/nunit.analyzers/compare/3.10.0...4.0.0)
NUnit Analyzers 4.0 - January 27, 2024
Version 4 of the NUnit analyzers drops the support for older releases of
Visual Studio. I.e.
releases of Visual Studio that are older than Visual Studio 2019 16.3.
In addition, this release
contains various bug fixes to existing analyzers, support of the
`CancelAfterAttribute`
that was introduced in NUnit 4, and extends the codefix for NUnit2007 to
also work when
`.Within` is used.
The release contains contributions from the following users (in
alphabetical order):
- [@​Abrynos](https://redirect.github.com/Abrynos)
- [@​gfoidl](https://redirect.github.com/gfoidl)
- [@​Laniusexcubitor](https://redirect.github.com/Laniusexcubitor)
- [@​MaceWindu](https://redirect.github.com/MaceWindu)
- [@​manfred-brands](https://redirect.github.com/manfred-brands)
- [@​mikkelbu](https://redirect.github.com/mikkelbu)
- [@​RenderMichael](https://redirect.github.com/RenderMichael)
- [@​SeanKilleen](https://redirect.github.com/SeanKilleen)
Issues Resolved
Features and Enhancements
-
[#​669](https://redirect.github.com/nunit/nunit.analyzers/issues/669)
NUnit2007 does not provide codefix when .Within is used
-
[#​609](https://redirect.github.com/nunit/nunit.analyzers/issues/609)
Drop support for VS before 2019
Bugs
-
[#​663](https://redirect.github.com/nunit/nunit.analyzers/issues/663)
NUnit1027 fired when CancellationToken and \[CancelAfter] is given
-
[#​659](https://redirect.github.com/nunit/nunit.analyzers/issues/659)
NUnit1032 throws an exception in a specific configuration
-
[#​656](https://redirect.github.com/nunit/nunit.analyzers/issues/656)
NUnit1028 warns about overridden methods
-
[#​635](https://redirect.github.com/nunit/nunit.analyzers/issues/635)
ArgumentException in DisposeFieldsAndPropertiesInTearDownAnalyzer
Tooling, Process, and Documentation
-
[#​676](https://redirect.github.com/nunit/nunit.analyzers/issues/676)
chore: markdownlint-cli2-config is removed use flag instead
-
[#​668](https://redirect.github.com/nunit/nunit.analyzers/issues/668)
chore(deps): Bump StyleCop.Analyzers.Unstable from 1.2.0.507 to
1.2.0.556
-
[#​662](https://redirect.github.com/nunit/nunit.analyzers/issues/662)
chore: Bump NUnit 4 to version 4.0.1
-
[#​660](https://redirect.github.com/nunit/nunit.analyzers/issues/660)
chore: Bump to NUnit 4
-
[#​654](https://redirect.github.com/nunit/nunit.analyzers/issues/654)
chore: Bump version
-
[#​630](https://redirect.github.com/nunit/nunit.analyzers/issues/630)
Update NUnit Analyzer docs to respect 120-character docs rule
documentation
-
[#​508](https://redirect.github.com/nunit/nunit.analyzers/issues/508)
Restore "File version" and "Product version" in analyzer dlls
</details>
---
### Configuration
📅 **Schedule**: Branch creation - At any time (no schedule defined),
Automerge - "every weekday" (UTC).
🚦 **Automerge**: Enabled.
♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the
rebase/retry checkbox.
🔕 **Ignore**: Close this PR and you won't be reminded about this update
again.
---
- [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check
this box
---
This PR has been generated by [Renovate
Bot](https://redirect.github.com/renovatebot/renovate).
<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzOS4xOS4wIiwidXBkYXRlZEluVmVyIjoiMzkuMTkuMCIsInRhcmdldEJyYW5jaCI6Im1hc3RlciIsImxhYmVscyI6WyJkZXBlbmRlbmNpZXMiLCJpbXBhY3Qvbm8tY2hhbmdlbG9nLXJlcXVpcmVkIl19-->
Co-authored-by: pulumi-renovate[bot] <189166143+pulumi-renovate[bot]@users.noreply.github.com>1 parent 67c88dd commit f544c59Copy full SHA for f544c59
File tree
Expand file treeCollapse file tree
1 file changed
+1
-1
lines changedFilter options
- testing-unit-cs-top-level-program/tests
Expand file treeCollapse file tree
1 file changed
+1
-1
lines changedtesting-unit-cs-top-level-program/tests/Tests.csproj
Copy file name to clipboardExpand all lines: testing-unit-cs-top-level-program/tests/Tests.csproj+1-1Lines changed: 1 addition & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
13 | 13 |
| |
14 | 14 |
| |
15 | 15 |
| |
16 |
| - | |
| 16 | + | |
17 | 17 |
| |
18 | 18 |
| |
19 | 19 |
| |
|
0 commit comments