From b1be93fbced48f29c5ecacc292e290c19d6ab8de Mon Sep 17 00:00:00 2001 From: DrSmugleaf Date: Sun, 21 Feb 2021 04:51:11 +0100 Subject: [PATCH] Show the prototype id when failing dummy icon test (#3340) * Show the prototype id when failing dummy icon test * Remove redundant import --- Content.IntegrationTests/Tests/DummyIconTest.cs | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/Content.IntegrationTests/Tests/DummyIconTest.cs b/Content.IntegrationTests/Tests/DummyIconTest.cs index d8846e8a31..4aac6ed326 100644 --- a/Content.IntegrationTests/Tests/DummyIconTest.cs +++ b/Content.IntegrationTests/Tests/DummyIconTest.cs @@ -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); } }); }