Let Stryker mutate the variant name rule

The is-not pattern binding made every mutant in RefuseVariantNameSharing a
compile error, so Stryker removed the whole method from its run.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
This commit is contained in:
Meta Vens 2026-09-29 17:11:47 +02:00
commit 9b23b33f8c

View file

@ -2761,7 +2761,8 @@ namespace GameCult.Caching
foreach (var variant in landing.Values.Where(stored => stored.Variant != null))
{
if (plan.Projections[variant.Key.Value].Name is not { } variantName)
var variantName = plan.Projections[variant.Key.Value].Name;
if (variantName == null)
continue;
for (var ancestor = Ancestor(variant.Variant!.BaseKey); ancestor != null;
ancestor = ancestor.Variant == null ? null : Ancestor(ancestor.Variant.BaseKey))