Give the overriding variant its own name in the grouping test

A variant must override its name.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
This commit is contained in:
x 2026-09-29 12:21:28 +02:00
commit 3d07ba0d20

View file

@ -594,7 +594,7 @@ namespace GameCult.Caching.Tests
using var cache = OpenGroups();
var baseKey = new CultRecordKey("base");
await PutLeaf(cache, "base", "base", null, GroupHull.Cruiser);
await cache.UpsertVariantAsync(new CultRecordKey("over"), baseKey, new[] { cache.Override<GroupLeaf>(nameof(GroupLeaf.Hull), GroupHull.Frigate) });
await cache.UpsertVariantAsync(new CultRecordKey("over"), baseKey, new[] { cache.Override<GroupLeaf>(nameof(GroupLeaf.Name), "over-name"), cache.Override<GroupLeaf>(nameof(GroupLeaf.Hull), GroupHull.Frigate) });
await cache.UpsertVariantAsync(new CultRecordKey("inherit"), baseKey, new[] { cache.Override<GroupLeaf>(nameof(GroupLeaf.Name), "inheritor") });
var model = GroupModel();