Skip to content

Commit

Permalink
Update libraries
Browse files Browse the repository at this point in the history
  • Loading branch information
marcominerva committed Sep 2, 2024
1 parent f6f71a9 commit 140af88
Show file tree
Hide file tree
Showing 7 changed files with 16 additions and 16 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@
</PropertyGroup>

<ItemGroup>
<PackageReference Include="Microsoft.AspNetCore.OpenApi" Version="8.0.7" />
<PackageReference Include="Swashbuckle.AspNetCore" Version="6.7.0" />
<PackageReference Include="Microsoft.AspNetCore.OpenApi" Version="8.0.8" />
<PackageReference Include="Swashbuckle.AspNetCore" Version="6.7.3" />
</ItemGroup>

<ItemGroup>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@

<ItemGroup>
<PackageReference Include="Azure.Identity" Version="1.12.0" />
<PackageReference Include="Microsoft.Data.SqlClient" Version="5.2.1" />
<PackageReference Include="Microsoft.Data.SqlClient" Version="5.2.2" />
</ItemGroup>

<ItemGroup>
Expand Down
2 changes: 1 addition & 1 deletion samples/TinyHelpers.Sample/TinyHelpers.Sample.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
</PropertyGroup>

<ItemGroup>
<PackageReference Include="BenchmarkDotNet" Version="0.13.12" />
<PackageReference Include="BenchmarkDotNet" Version="0.14.0" />
</ItemGroup>

<ItemGroup>
Expand Down
2 changes: 1 addition & 1 deletion src/Directory.Build.props
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
</PropertyGroup>

<ItemGroup>
<PackageReference Include="Nerdbank.GitVersioning" Version="3.6.139" PrivateAssets="All" />
<PackageReference Include="Nerdbank.GitVersioning" Version="3.6.143" PrivateAssets="All" />
</ItemGroup>

</Project>
2 changes: 1 addition & 1 deletion src/TinyHelpers.AspNetCore/TinyHelpers.AspNetCore.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
</ItemGroup>

<ItemGroup>
<PackageReference Include="Swashbuckle.AspNetCore.SwaggerGen" Version="6.7.0" />
<PackageReference Include="Swashbuckle.AspNetCore.SwaggerGen" Version="6.7.3" />
</ItemGroup>

<ItemGroup>
Expand Down
18 changes: 9 additions & 9 deletions tests/TinyHelpers.Tests/Extensions/CollectionExtensionsTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -9,32 +9,32 @@ public void Chunk_ExactMultipleChunkSize_ReturnsEqualChunks()
{
// Arrange
var source = Enumerable.Range(1, 6);
int chunkSize = 3;
var chunkSize = 3;

// Act
var result = source.Chunk(chunkSize).ToList();

// Assert
Assert.Equal(2, result.Count);
Assert.Equal(new[] { 1, 2, 3 }, result[0].ToArray());
Assert.Equal(new[] { 4, 5, 6 }, result[1].ToArray());
Assert.Equal(new[] { 1, 2, 3 }, result[0]);
Assert.Equal(new[] { 4, 5, 6 }, result[1]);
}

[Fact]
public void Chunk_ChunkSizeNotDivisible_ReturnsLastChunkSmaller()
{
// Arrange
var source = Enumerable.Range(1, 7);
int chunkSize = 3;
var chunkSize = 3;

// Act
var result = source.Chunk(chunkSize).ToList();

// Assert
Assert.Equal(3, result.Count);
Assert.Equal(new[] { 1, 2, 3 }, result[0].ToArray());
Assert.Equal(new[] { 4, 5, 6 }, result[1].ToArray());
Assert.Equal(new[] { 7 }, result[2].ToArray());
Assert.Equal(new[] { 1, 2, 3 }, result[0]);
Assert.Equal(new[] { 4, 5, 6 }, result[1]);
Assert.Equal(new[] { 7 }, result[2]);
}

[Fact]
Expand All @@ -44,7 +44,7 @@ public void GetLongCount_PredicateAlwaysTrue_ReturnsTotalCount()
var source = Enumerable.Range(1, 10);

// Act
long result = source.GetLongCount(x => true);
var result = source.GetLongCount(x => true);

// Assert
Assert.Equal(10, result);
Expand All @@ -57,7 +57,7 @@ public void GetLongCount_PredicateAlwaysFalse_ReturnsZero()
var source = Enumerable.Range(1, 10);

// Act
long result = source.GetLongCount(x => x > 10);
var result = source.GetLongCount(x => x > 10);

// Assert
Assert.Equal(0, result);
Expand Down
2 changes: 1 addition & 1 deletion tests/TinyHelpers.Tests/TinyHelpers.Tests.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@

<ItemGroup>
<PackageReference Include="FluentAssertions" Version="6.12.0" />
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="17.10.0" />
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="17.11.0" />
<PackageReference Include="xunit" Version="2.9.0" />
<PackageReference Include="xunit.runner.visualstudio" Version="2.8.2">
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
Expand Down

0 comments on commit 140af88

Please sign in to comment.