Economy tests: a null list beside RoleInputs does not drop them

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
soul 2026-10-27 11:44:30 +01:00
commit e93f531669

View file

@ -55,6 +55,15 @@ public sealed class RecipeRoleInputTests
Assert.False(Recipes.IsConsumerGood(f.Cache, ironRecipe));
}
[Fact]
public void ANullListElsewhereInARecipeLeavesItsRoleInputsToTheRules()
{
using var f = Smelter();
Assert.Empty(EconomyChecks.Check(f.Cache).Faults.Where(x => x.Invariant != EconomyChecks.LRecipe));
f.EditRecipe(Iron, r => r.Upkeep = null);
Assert.Empty(EconomyChecks.Check(f.Cache).Faults.Where(x => x.Invariant != EconomyChecks.LRecipe));
}
[Fact]
public void DepthReadsARoleInputAsItsShallowestFiller()
{