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 11, 2021
1 parent c28106a commit 96698ab
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 96698ab

Please sign in to comment.