Skip to content

Commit dc5c78f

Browse files
committed
Include group
1 parent 2c72cbf commit dc5c78f

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

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

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -328,13 +328,13 @@ private GroupComparisonMode CompareEndpointCounts(string group, StaticWebAssetEn
328328
case GroupComparisonMode.Exact:
329329
if (manifestEndpoints.Length != expectedEndpoints.Length)
330330
{
331-
ThrowEndpointCountMismatchError(manifestEndpoints, expectedEndpoints);
331+
ThrowEndpointCountMismatchError(group, manifestEndpoints, expectedEndpoints);
332332
}
333333
break;
334334
case GroupComparisonMode.AllowAdditionalAssets:
335335
if (expectedEndpoints.Except(manifestEndpoints).Any())
336336
{
337-
ThrowEndpointCountMismatchError(manifestEndpoints, expectedEndpoints);
337+
ThrowEndpointCountMismatchError(group, manifestEndpoints, expectedEndpoints);
338338
}
339339
break;
340340
default:
@@ -343,14 +343,14 @@ private GroupComparisonMode CompareEndpointCounts(string group, StaticWebAssetEn
343343

344344
return comparisonMode;
345345

346-
static void ThrowEndpointCountMismatchError(StaticWebAssetEndpoint[] manifestEndpoints, StaticWebAssetEndpoint[] expectedEndpoints)
346+
static void ThrowEndpointCountMismatchError(string group, StaticWebAssetEndpoint[] manifestEndpoints, StaticWebAssetEndpoint[] expectedEndpoints)
347347
{
348348
var missingEndpoints = expectedEndpoints.Except(manifestEndpoints);
349349
var unexpectedEndpoints = manifestEndpoints.Except(expectedEndpoints);
350350

351351
var differences = new List<string>
352352
{
353-
"Expected '{expectedEndpoints.Length}' endpoints but found '{manifestEndpoints.Length}'."
353+
$"Expected group '{group}' to have '{expectedEndpoints.Length}' endpoints but found '{manifestEndpoints.Length}'."
354354
};
355355

356356
if (missingEndpoints.Any())

0 commit comments

Comments
 (0)