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
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 5 additions and 1 deletions

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);
}
});
}