Make material arbitrage test more verbose (#27180)

List entities spawned by destruction for debugging
This commit is contained in:
Tayrtahn
2024-04-20 17:23:09 -04:00
committed by GitHub
parent 3bfd5d2c4e
commit 1fb7393a1b

View File

@@ -183,7 +183,7 @@ public sealed class MaterialArbitrageTest
var spawnedPrice = await GetSpawnedPrice(spawnedEnts);
var price = await GetPrice(id);
if (spawnedPrice > 0 && price > 0)
Assert.That(spawnedPrice, Is.LessThanOrEqualTo(price), $"{id} increases in price after being destroyed");
Assert.That(spawnedPrice, Is.LessThanOrEqualTo(price), $"{id} increases in price after being destroyed\nEntities spawned on destruction: {string.Join(',', spawnedEnts)}");
// Check lathe production
if (latheRecipes.TryGetValue(id, out var recipe))