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:
parent
c5ab6f191b
commit
b1be93fbce
|
|
@ -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);
|
||||
}
|
||||
});
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue