Skip to content

Commit 4f10a49

Browse files
authored
Update FluentAssertions to 6.12.0 (#446)
1 parent cd7d7fb commit 4f10a49

File tree

6 files changed

+20
-21
lines changed

6 files changed

+20
-21
lines changed

Algorithms.Tests/Algorithms.Tests.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
1919
<PrivateAssets>all</PrivateAssets>
2020
</PackageReference>
21-
<PackageReference Include="FluentAssertions" Version="5.10.3" />
21+
<PackageReference Include="FluentAssertions" Version="6.12.0" />
2222
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="16.3.0" />
2323
<PackageReference Include="nunit" Version="3.12.0" />
2424
<PackageReference Include="NUnit3TestAdapter" Version="3.15.1" />

Algorithms.Tests/Graph/FloydWarshallTests.cs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,6 @@ public void CorrectMatrixTest()
5050
};
5151

5252
var floydWarshaller = new FloydWarshall<int>();
53-
54-
floydWarshaller.Run(graph).Should().Equal(actualDistances);
53+
floydWarshaller.Run(graph).Should().BeEquivalentTo(actualDistances);
5554
}
5655
}

Algorithms.Tests/Knapsack/BranchAndBoundKnapsackSolverTests.cs

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,9 @@ public static class BranchAndBoundKnapsackSolverTests
1111
public static void BranchAndBoundTest_Example1_Success()
1212
{
1313
// Arrange
14-
var items = new[] {'A', 'B', 'C', 'D'};
15-
var values = new[] {18, 20, 14, 18};
16-
var weights = new[] {2, 4, 6, 9};
14+
var items = new[] { 'A', 'B', 'C', 'D' };
15+
var values = new[] { 18, 20, 14, 18 };
16+
var weights = new[] { 2, 4, 6, 9 };
1717

1818
var capacity = 15;
1919

@@ -25,16 +25,16 @@ public static void BranchAndBoundTest_Example1_Success()
2525
var actualResult = solver.Solve(items, capacity, weightSelector, valueSelector);
2626

2727
// Assert
28-
actualResult.Should().BeEquivalentTo('A', 'B', 'D');
28+
actualResult.Should().BeEquivalentTo(new[] { 'A', 'B', 'D' });
2929
}
3030

3131
[Test]
3232
public static void BranchAndBoundTest_Example2_Success()
3333
{
3434
// Arrange
35-
var items = new[] {'A', 'B', 'C', 'D', 'E', 'F', 'G', 'H', 'I', 'J'};
35+
var items = new[] { 'A', 'B', 'C', 'D', 'E', 'F', 'G', 'H', 'I', 'J' };
3636
var values = new[] { 505, 352, 458, 220, 354, 414, 498, 545, 473, 543 };
37-
var weights = new[] {23, 26, 20, 18, 32, 27, 29, 26, 30, 27};
37+
var weights = new[] { 23, 26, 20, 18, 32, 27, 29, 26, 30, 27 };
3838

3939
var capacity = 67;
4040

@@ -46,16 +46,16 @@ public static void BranchAndBoundTest_Example2_Success()
4646
var actualResult = solver.Solve(items, capacity, weightSelector, valueSelector);
4747

4848
// Assert
49-
actualResult.Should().BeEquivalentTo('H', 'D', 'A');
49+
actualResult.Should().BeEquivalentTo(new[] { 'H', 'D', 'A' });
5050
}
5151

5252
[Test]
5353
public static void BranchAndBoundTest_CapacityIsZero_NothingTaken()
5454
{
5555
// Arrange
56-
var items = new[] {'A', 'B', 'C', 'D'};
57-
var values = new[] {18, 20, 14, 18};
58-
var weights = new[] {2, 4, 6, 9};
56+
var items = new[] { 'A', 'B', 'C', 'D' };
57+
var values = new[] { 18, 20, 14, 18 };
58+
var weights = new[] { 2, 4, 6, 9 };
5959

6060
var capacity = 0;
6161

@@ -74,9 +74,9 @@ public static void BranchAndBoundTest_CapacityIsZero_NothingTaken()
7474
public static void BranchAndBoundTest_PlentyCapacity_EverythingIsTaken()
7575
{
7676
// Arrange
77-
var items = new[] {'A', 'B', 'C', 'D'};
78-
var values = new[] {18, 20, 14, 18};
79-
var weights = new[] {2, 4, 6, 9};
77+
var items = new[] { 'A', 'B', 'C', 'D' };
78+
var values = new[] { 18, 20, 14, 18 };
79+
var weights = new[] { 2, 4, 6, 9 };
8080

8181
var capacity = 1000;
8282

DataStructures.Tests/DataStructures.Tests.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
1919
<PrivateAssets>all</PrivateAssets>
2020
</PackageReference>
21-
<PackageReference Include="FluentAssertions" Version="5.10.3" />
21+
<PackageReference Include="FluentAssertions" Version="6.12.0" />
2222
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="16.3.0" />
2323
<PackageReference Include="nunit" Version="3.12.0" />
2424
<PackageReference Include="NUnit3TestAdapter" Version="3.15.1" />

Utilities.Tests/Extensions/DictionaryExtensionsTests.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -29,8 +29,8 @@ public void AddMany_ShouldAddAllKeyValuePairs()
2929

3030
dictionary.Should().HaveCount(3);
3131

32-
dictionary.Should().ContainKey("one").WhichValue.Should().Be(1);
33-
dictionary.Should().ContainKey("two").WhichValue.Should().Be(2);
34-
dictionary.Should().ContainKey("three").WhichValue.Should().Be(3);
32+
dictionary.Should().ContainKey("one").WhoseValue.Should().Be(1);
33+
dictionary.Should().ContainKey("two").WhoseValue.Should().Be(2);
34+
dictionary.Should().ContainKey("three").WhoseValue.Should().Be(3);
3535
}
3636
}

Utilities.Tests/Utilities.Tests.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
1818
<PrivateAssets>all</PrivateAssets>
1919
</PackageReference>
20-
<PackageReference Include="FluentAssertions" Version="5.10.3" />
20+
<PackageReference Include="FluentAssertions" Version="6.12.0" />
2121
<PackageReference Include="NUnit" Version="3.12.0" />
2222
<PackageReference Include="NUnit3TestAdapter" Version="3.16.1" />
2323
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="16.5.0" />

0 commit comments

Comments
 (0)