From 1b9185c18113296689461cf19109e160d222a1f4 Mon Sep 17 00:00:00 2001 From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com> Date: Fri, 18 Aug 2023 18:15:08 +0000 Subject: [PATCH] chore(deps): update dependency fluentassertions.analyzers to v0.22.0 (#726) Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> --- Directory.Packages.props | 2 +- .../GraphTranslationUtilityTests.cs | 2 +- .../Services/BcdeScanExecutionServiceTests.cs | 4 ++-- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/Directory.Packages.props b/Directory.Packages.props index 0bb47249c..23799a46f 100644 --- a/Directory.Packages.props +++ b/Directory.Packages.props @@ -10,7 +10,7 @@ - + diff --git a/test/Microsoft.ComponentDetection.Orchestrator.Tests/GraphTranslationUtilityTests.cs b/test/Microsoft.ComponentDetection.Orchestrator.Tests/GraphTranslationUtilityTests.cs index bc2473222..69cc459ce 100644 --- a/test/Microsoft.ComponentDetection.Orchestrator.Tests/GraphTranslationUtilityTests.cs +++ b/test/Microsoft.ComponentDetection.Orchestrator.Tests/GraphTranslationUtilityTests.cs @@ -28,7 +28,7 @@ public void Test_AccumulateAndConvertToContract() var convertedGraphContract = GraphTranslationUtility.AccumulateAndConvertToContract(dependencyGraphs); - convertedGraphContract.Count.Should().Be(2); + convertedGraphContract.Should().HaveCount(2); convertedGraphContract.Keys.Should().BeEquivalentTo(new List() { "file1.json", "file2.json" }); var graph1 = convertedGraphContract["file1.json"]; diff --git a/test/Microsoft.ComponentDetection.Orchestrator.Tests/Services/BcdeScanExecutionServiceTests.cs b/test/Microsoft.ComponentDetection.Orchestrator.Tests/Services/BcdeScanExecutionServiceTests.cs index 1d21ff6b1..46c09136c 100644 --- a/test/Microsoft.ComponentDetection.Orchestrator.Tests/Services/BcdeScanExecutionServiceTests.cs +++ b/test/Microsoft.ComponentDetection.Orchestrator.Tests/Services/BcdeScanExecutionServiceTests.cs @@ -260,7 +260,7 @@ public async Task DetectComponents_Graph_Happy_PathAsync() explicitlyReferencedComponents.Should().ContainSingle().And.Contain(this.detectedComponents[0].Component.Id); var actualGraph = matchingGraph.Value.Graph; - actualGraph.Keys.Count.Should().Be(2); + actualGraph.Keys.Should().HaveCount(2); actualGraph[this.detectedComponents[0].Component.Id].Count.Should().Be(1); actualGraph[this.detectedComponents[0].Component.Id].Should().Contain(this.detectedComponents[1].Component.Id); actualGraph[this.detectedComponents[1].Component.Id].Should().BeNull(); @@ -335,7 +335,7 @@ public async Task DetectComponents_Graph_AccumulatesGraphsOnSameLocationAsync() explicitlyReferencedComponents.Should().Contain(this.detectedComponents[1].Component.Id); var actualGraph = matchingGraph.Value.Graph; - actualGraph.Keys.Count.Should().Be(2); + actualGraph.Keys.Should().HaveCount(2); actualGraph[this.detectedComponents[0].Component.Id].Count.Should().Be(1); actualGraph[this.detectedComponents[0].Component.Id].Should().Contain(this.detectedComponents[1].Component.Id); actualGraph[this.detectedComponents[1].Component.Id].Count.Should().Be(1);