Make material arbitrage test more verbose (#27180)
List entities spawned by destruction for debugging
This commit is contained in:
@@ -183,7 +183,7 @@ public sealed class MaterialArbitrageTest
|
|||||||
var spawnedPrice = await GetSpawnedPrice(spawnedEnts);
|
var spawnedPrice = await GetSpawnedPrice(spawnedEnts);
|
||||||
var price = await GetPrice(id);
|
var price = await GetPrice(id);
|
||||||
if (spawnedPrice > 0 && price > 0)
|
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
|
// Check lathe production
|
||||||
if (latheRecipes.TryGetValue(id, out var recipe))
|
if (latheRecipes.TryGetValue(id, out var recipe))
|
||||||
|
|||||||
Reference in New Issue
Block a user