Skip to content

Commit

Permalink
Update AspNetSdkBaselineTest.cs
Browse files Browse the repository at this point in the history
  • Loading branch information
TanayParikh committed Aug 29, 2022
1 parent e5799f0 commit 15e1a72
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -361,7 +361,7 @@ internal void AssertManifest(

manifestAssets.Should().BeEquivalentTo(expectedAssets, AssetDifferencesDetails(manifestAssets, expectedAssets));

string AssetDifferencesDetails(IEnumerable<StaticWebAsset> manifestAssets, IEnumerable<StaticWebAsset> expectedAssets)
static string AssetDifferencesDetails(IEnumerable<StaticWebAsset> manifestAssets, IEnumerable<StaticWebAsset> expectedAssets)
{
var missingAssets = expectedAssets.Except(manifestAssets);
var unexpectedAssets = manifestAssets.Except(expectedAssets);
Expand All @@ -370,12 +370,12 @@ string AssetDifferencesDetails(IEnumerable<StaticWebAsset> manifestAssets, IEnum

if (missingAssets.Any())
{
differences.Add($"The following expected assets weren't found in the manifest {string.Join(", ", missingAssets)}.");
differences.Add($"The following expected assets weren't found in the manifest {string.Join(", ", missingAssets.Select(a => a.Identity))}.");
}

if (unexpectedAssets.Any())
{
differences.Add($"The following additional unexpected assets were found in the manifest {string.Join(", ", unexpectedAssets)}.");
differences.Add($"The following additional unexpected assets were found in the manifest {string.Join(", ", unexpectedAssets.Select(a => a.Identity))}.");
}

if (differences.Any())
Expand Down

0 comments on commit 15e1a72

Please sign in to comment.