Registry tests: build the over-bound manifest as an array

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
Meta Vens 2026-10-10 23:08:11 +02:00
commit 747183078a

View file

@ -345,7 +345,7 @@ public sealed class ConceptSubjectRegistryTests
Assert.Equal(ConceptSubjectRegistry.MaxManifestBytes, fits.Length);
Assert.Single(ConceptSubjectRegistry.ParseManifest(fits));
var refusal = Assert.Throws<ManifestRefusedException>(() => ConceptSubjectRegistry.ParseManifest([.. fits, (byte)' ']));
var refusal = Assert.Throws<ManifestRefusedException>(() => ConceptSubjectRegistry.ParseManifest(fits.Append((byte)' ').ToArray()));
Assert.Equal(("manifest", "TooLarge"), (refusal.Field, refusal.Code));
}