Skip to content

Commit

Permalink
Addressed PR feedback
Browse files Browse the repository at this point in the history
  • Loading branch information
jebriede committed Oct 7, 2021
1 parent af05390 commit f83d6cb
Showing 1 changed file with 3 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -134,14 +134,12 @@ public void VulnerabilityCountWhenMetadataHasVulnerability_Calculated()
[Fact]
public void PackageVulnerabilities_WhenMetadataHasVulnerability_IsOrderedBySeverityDescending()
{
var sortedTestVulnerabilities =
IEnumerable<PackageVulnerabilityMetadataContextInfo> sortedTestVulnerabilities =
_testData.TestData.Vulnerabilities
.OrderByDescending(v => v.Severity)
.Select(v => new Action<PackageVulnerabilityMetadataContextInfo>(
(item) => Assert.Equal(v.Severity, item.Severity))
).ToArray();
.Select(v => new PackageVulnerabilityMetadataContextInfo(v.AdvisoryUrl, v.Severity));

Assert.Collection(_testInstance.PackageVulnerabilities, sortedTestVulnerabilities);
Assert.Equal(sortedTestVulnerabilities, _testInstance.PackageVulnerabilities);
}

[Fact]
Expand Down

0 comments on commit f83d6cb

Please sign in to comment.