Skip to content

Commit 0cbc293

Browse files
committed
chore: Update packages
1 parent 563a49d commit 0cbc293

File tree

4 files changed

+34
-18
lines changed

4 files changed

+34
-18
lines changed

src/LinkDotNet.StringBuilder/LinkDotNet.StringBuilder.csproj

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@
1717
<PackageIcon>logo.png</PackageIcon>
1818
<PackageIconUrl>https://github.com/linkdotnet/StringBuilder/blob/main/logo.png</PackageIconUrl>
1919
<PublishRepositoryUrl>true</PublishRepositoryUrl>
20+
<LangVersion>preview</LangVersion>
2021
</PropertyGroup>
2122

2223
<ItemGroup>
@@ -30,4 +31,11 @@
3031
</None>
3132
</ItemGroup>
3233

34+
<ItemGroup>
35+
<PackageReference Update="SonarAnalyzer.CSharp" Version="8.46.0.54807">
36+
<PrivateAssets>all</PrivateAssets>
37+
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
38+
</PackageReference>
39+
</ItemGroup>
40+
3341
</Project>

tests/LinkDotNet.StringBuilder.Benchmarks/LinkDotNet.StringBuilder.Benchmarks.csproj

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,12 @@
99
</PropertyGroup>
1010

1111
<ItemGroup>
12-
<PackageReference Include="BenchmarkDotNet" Version="0.13.1" />
12+
<PackageReference Include="BenchmarkDotNet" Version="0.13.2.1940" />
1313
<PackageReference Include="ZString" Version="2.4.4" />
14+
<PackageReference Update="SonarAnalyzer.CSharp" Version="8.46.0.54807">
15+
<PrivateAssets>all</PrivateAssets>
16+
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
17+
</PackageReference>
1418
</ItemGroup>
1519

1620
<ItemGroup>

tests/LinkDotNet.StringBuilder.UnitTests/LinkDotNet.StringBuilder.UnitTests.csproj

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,8 @@
99

1010
<ItemGroup>
1111
<PackageReference Include="FluentAssertions" Version="6.7.0" />
12-
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="16.11.0" />
13-
<PackageReference Include="xunit" Version="2.4.1" />
12+
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="17.3.2" />
13+
<PackageReference Include="xunit" Version="2.4.2" />
1414
<PackageReference Include="xunit.runner.visualstudio" Version="2.4.5">
1515
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
1616
<PrivateAssets>all</PrivateAssets>
@@ -19,12 +19,16 @@
1919
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
2020
<PrivateAssets>all</PrivateAssets>
2121
</PackageReference>
22+
<PackageReference Update="SonarAnalyzer.CSharp" Version="8.46.0.54807">
23+
<PrivateAssets>all</PrivateAssets>
24+
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
25+
</PackageReference>
2226
</ItemGroup>
2327

2428
<ItemGroup>
2529
<ProjectReference Include="..\..\src\LinkDotNet.StringBuilder\LinkDotNet.StringBuilder.csproj" />
2630
</ItemGroup>
27-
31+
2832
<ItemGroup Label="Global usings">
2933
<Using Include="FluentAssertions" />
3034
<Using Include="Xunit" />

tests/LinkDotNet.StringBuilder.UnitTests/ValueStringBuilder.AppendJoin.Tests.cs

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,20 @@ namespace LinkDotNet.StringBuilder.UnitTests;
55

66
public class ValueStringBuilderAppendJoinTests
77
{
8+
public static IEnumerable<object[]> StringSeparatorTestData()
9+
{
10+
yield return new object[] { ",", new[] { "Hello", "World" }, "Hello,World" };
11+
yield return new object[] { ",", new[] { "Hello" }, "Hello" };
12+
yield return new object[] { ",", Array.Empty<string>(), string.Empty };
13+
}
14+
15+
public static IEnumerable<object[]> CharSeparatorTestData()
16+
{
17+
yield return new object[] { ',', new[] { "Hello", "World" }, "Hello,World" };
18+
yield return new object[] { ',', new[] { "Hello" }, "Hello" };
19+
yield return new object[] { ',', Array.Empty<string>(), string.Empty };
20+
}
21+
822
[Theory]
923
[MemberData(nameof(StringSeparatorTestData))]
1024
public void ShouldAppendWithStringSeparator(string separator, IEnumerable<string?> values, string expected)
@@ -46,18 +60,4 @@ public void ShouldAddDataWithCharSeparator()
4660

4761
stringBuilder.ToString().Should().Be("1,01/01/1900 00:00:00");
4862
}
49-
50-
private static IEnumerable<object[]> StringSeparatorTestData()
51-
{
52-
yield return new object[] { ",", new[] { "Hello", "World" }, "Hello,World" };
53-
yield return new object[] { ",", new[] { "Hello" }, "Hello" };
54-
yield return new object[] { ",", Array.Empty<string>(), string.Empty };
55-
}
56-
57-
private static IEnumerable<object[]> CharSeparatorTestData()
58-
{
59-
yield return new object[] { ',', new[] { "Hello", "World" }, "Hello,World" };
60-
yield return new object[] { ',', new[] { "Hello" }, "Hello" };
61-
yield return new object[] { ',', Array.Empty<string>(), string.Empty };
62-
}
6363
}

0 commit comments

Comments
 (0)