Skip to content

Commit b24a8cc

Browse files
authored
Merge pull request #1140 from bUnit-dev/release/v1.21
Release of new minor version v1.21
2 parents 57be80e + 887f574 commit b24a8cc

34 files changed

+561
-413
lines changed

.config/dotnet-tools.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
"isRoot": true,
44
"tools": {
55
"dotnet-serve": {
6-
"version": "1.10.155",
6+
"version": "1.10.172",
77
"commands": [
88
"dotnet-serve"
99
]

.github/workflows/docs-deploy.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@ jobs:
110110
111111
- name: ⏭ Create pull request from stable to main when direct merge fails
112112
if: steps.mergeMainline.outcome == 'failure'
113-
uses: thomaseizinger/[email protected].0
113+
uses: thomaseizinger/[email protected].1
114114
env:
115115
GITHUB_TOKEN: ${{ secrets.BUNIT_BOT_TOKEN }}
116116
with:

.github/workflows/prepare-release.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ jobs:
8383
run: git push origin release/v$NBGV_MajorMinorVersion
8484

8585
- name: ⏭ Create pull request for release branch
86-
uses: thomaseizinger/[email protected].0
86+
uses: thomaseizinger/[email protected].1
8787
env:
8888
GITHUB_TOKEN: ${{ secrets.BUNIT_BOT_TOKEN }}
8989
with:

.github/workflows/release.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,7 @@ jobs:
125125
126126
- name: ⏭ Create pull request from stable to main when direct merge fails
127127
if: steps.mergeMainline.outcome == 'failure'
128-
uses: thomaseizinger/[email protected].0
128+
uses: thomaseizinger/[email protected].1
129129
env:
130130
GITHUB_TOKEN: ${{ secrets.BUNIT_BOT_TOKEN }}
131131
with:

.github/workflows/verification.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,10 @@ concurrency:
2121
group: verification-${{ github.ref }}-1
2222
cancel-in-progress: true
2323

24+
env:
25+
VSTEST_CONNECTION_TIMEOUT: 180
26+
DOTNET_NOLOGO: "true"
27+
2428
jobs:
2529
verify-bunit:
2630
name: 👌 Verify bUnit
@@ -112,4 +116,4 @@ jobs:
112116
- name: 📄 Building docs
113117
run: |
114118
dotnet tool update -g docfx --version 2.67.0
115-
docfx docs/site/docfx.json
119+
docfx docs/site/docfx.json

CHANGELOG.md

Lines changed: 199 additions & 193 deletions
Large diffs are not rendered by default.

Directory.Build.props

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@
5050
<!-- Shared code analyzers used for all projects in the solution -->
5151
<ItemGroup Label="Code Analyzers">
5252
<PackageReference Include="AsyncFixer" Version="1.6.0" PrivateAssets="All" />
53-
<PackageReference Include="SonarAnalyzer.CSharp" Version="9.0.0.68202" PrivateAssets="All" />
53+
<PackageReference Include="SonarAnalyzer.CSharp" Version="9.4.0.72892" PrivateAssets="All" />
5454
</ItemGroup>
5555

5656
<ItemGroup Label="Implicit usings"

src/Directory.Build.props

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@
4343

4444
<ItemGroup>
4545
<PackageReference Include="Microsoft.SourceLink.GitHub" Version="1.1.1" PrivateAssets="All" />
46-
<PackageReference Include="Nerdbank.GitVersioning" Version="3.6.132" PrivateAssets="All" />
46+
<PackageReference Include="Nerdbank.GitVersioning" Version="3.6.133" PrivateAssets="All" />
4747

4848
</ItemGroup>
4949

src/bunit.core/ComponentFactoryCollection.cs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
#if NET5_0_OR_GREATER
22
using System.Collections;
3-
using System.Collections.Generic;
43

54
namespace Bunit;
65

src/bunit.core/ComponentParameterCollection.cs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,6 @@ public void Add(IEnumerable<ComponentParameter> parameters)
7171
/// the parameters in the collection passed to it.
7272
/// </summary>
7373
/// <typeparam name="TComponent">Type of component to render.</typeparam>
74-
[SuppressMessage("Design", "MA0051:Method is too long", Justification = "TODO: Refactor")]
7574
public RenderFragment ToRenderFragment<TComponent>()
7675
where TComponent : IComponent
7776
{
@@ -118,7 +117,7 @@ void AddAttributes(RenderTreeBuilder builder)
118117
foreach (var pgroup in parameters.Where(x => !x.IsCascadingValue).GroupBy(x => x.Name, StringComparer.Ordinal))
119118
{
120119
var group = pgroup.ToArray();
121-
var groupObject = group.FirstOrDefault(x => x.Value is not null).Value;
120+
var groupObject = Array.Find(group, x => x.Value is not null).Value;
122121

123122
if (group.Length == 1)
124123
{

0 commit comments

Comments
 (0)