bUnit is a testing library for Blazor components that make tests look, feel, and runs like regular unit tests. bUnit makes it easy to render and control a component under test’s life-cycle, pass parameter and inject services into it, trigger event handlers, and verify the rendered markup from the component using a built-in semantic HTML comparer.
The latest Roslyn compiler version changes the way Razor files are compiled, and this hotfix release takes care of these changes. For more information check this issue.
Bug Fixes
9288 - [C#] Metrics analyzer for Razor: Lines of code are outside the range of the file
9.25
Hello everyone,
This release comes with seven new rules for ASP.NET core alongside some improvements.
Enjoy!
New Rules
9096 - [C#] New Rule S6966: Awaitable method should be used
9095 - [C#] New Rule S6967: ModelState.IsValid should be called in controller actions
9094 - [C#] New Rule S6964: The value type properties of a model class should be nullable or marked as "Required" to avoid under-posting.
9093 - [C#] New rule S6968: Actions that return a value should be annotated with ProducesResponseTypeAttribute containing the return type
9092 - [C#] New rule S6965: You should use HttpAttribute in API controller actions
9091 - [C#] New rule S6962: You should pool HTTP connections with HttpClientFactory
9089 - [C#] New rule S6960: Controllers should not have too many responsibilities
Bug Fixes
9193 - Fix AD0001: Named Attribute Arguments in S6930
False Positive
9219 - [C#] Fix S1144 FP: Getters/Setters of property with attribute are being flagged
Most Recent Ignore Conditions Applied to This Pull Request
| Dependency Name | Ignore Conditions |
| --- | --- |
| SonarAnalyzer.CSharp | [>= 8.45.a, < 8.46] |
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 ignore conditions` will show all of the ignore conditions of the specified dependency
- `@dependabot ignore this major version` will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
- `@dependabot ignore this minor version` will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
- `@dependabot ignore this dependency` will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)
Bumps SonarAnalyzer.CSharp from 9.23.1.88495 to 9.25.1.91650.
Release notes
Sourced from SonarAnalyzer.CSharp's releases.
... (truncated)
Commits
bb8738a
Update Azure DevOps CI triggers (#9314)c1b8fd7
Metrics analyzer for Razor: Lines of code are outside the range of the file (...2d5c052
Razor mappings: Ensure we check if the mapped span is valid (#9305)2e96863
Create reproducer for #9288 (#9297)dda339e
Remove outdated comment0d5fc8b
Fix comment with expectation811f7d2
Update the lines order524f1f6
Remove "wrong location" mentioning053a756
Update UTs to reflect the latest changes from dotnet 8.0.53d24a9b
Force the use of the latest dotnet SDKMost Recent Ignore Conditions Applied to This Pull Request
| Dependency Name | Ignore Conditions | | --- | --- | | SonarAnalyzer.CSharp | [>= 8.45.a, < 8.46] |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