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:
parent
1efd8343da
commit
e93f531669
1 changed files with 9 additions and 0 deletions
|
|
@ -55,6 +55,15 @@ public sealed class RecipeRoleInputTests
|
||||||
Assert.False(Recipes.IsConsumerGood(f.Cache, ironRecipe));
|
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]
|
[Fact]
|
||||||
public void DepthReadsARoleInputAsItsShallowestFiller()
|
public void DepthReadsARoleInputAsItsShallowestFiller()
|
||||||
{
|
{
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue