Skip to content

Commit 9fcaf87

Browse files
committed
Improve comparison
1 parent e6c7c87 commit 9fcaf87

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

test/Microsoft.NET.Sdk.Razor.Tests/StaticWebAssetsBaselineComparer.cs

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -350,7 +350,11 @@ static void ThrowEndpointCountMismatchError(string group, StaticWebAssetEndpoint
350350

351351
var differences = new List<string>
352352
{
353-
$"Expected group '{group}' to have '{expectedEndpoints.Length}' endpoints but found '{manifestEndpoints.Length}'."
353+
$"Expected group '{group}' to have '{expectedEndpoints.Length}' endpoints but found '{manifestEndpoints.Length}'.",
354+
"Expected Endpoints:",
355+
string.Join($"{Environment.NewLine}\t", expectedEndpoints.Select(a => $"{a.Route} - {a.AssetFile}")),
356+
"Actual Endpoints:",
357+
string.Join($"{Environment.NewLine}\t", manifestEndpoints.Select(a => $"{a.Route} - {a.AssetFile}"))
354358
};
355359

356360
if (missingEndpoints.Any())

0 commit comments

Comments
 (0)