Show the prototype id when failing dummy icon test (#3340)

* Show the prototype id when failing dummy icon test

* Remove redundant import
This commit is contained in:
DrSmugleaf
2021-02-21 04:51:11 +01:00
committed by GitHub
parent c5ab6f191b
commit b1be93fbce

View File

@@ -26,7 +26,11 @@ namespace Content.IntegrationTests.Tests
{
if (!proto.Components.ContainsKey("Sprite")) continue;
var _ = SpriteComponent.GetPrototypeTextures(proto, resourceCache).ToList();
Assert.DoesNotThrow(() =>
{
var _ = SpriteComponent.GetPrototypeTextures(proto, resourceCache).ToList();
}, "Prototype {0} threw an exception when getting its textures.",
proto.ID);
}
});
}