diff --git a/Content.IntegrationTests/Tests/Tag/TagTest.cs b/Content.IntegrationTests/Tests/Tag/TagTest.cs index 0fa425dfef..1b9c313093 100644 --- a/Content.IntegrationTests/Tests/Tag/TagTest.cs +++ b/Content.IntegrationTests/Tests/Tag/TagTest.cs @@ -119,36 +119,6 @@ namespace Content.IntegrationTests.Tests.Tag sPrototypeManager.Index(UnregisteredTag); }); - // Single - Assert.Throws(() => - { - tagSystem.HasTag(sTagDummy, UnregisteredTag); - }); - Assert.Throws(() => - { - tagSystem.HasTag(sTagComponent, UnregisteredTag); - }); - - // Any - Assert.Throws(() => - { - tagSystem.HasAnyTag(sTagDummy, UnregisteredTag); - }); - Assert.Throws(() => - { - tagSystem.HasAnyTag(sTagComponent, UnregisteredTag); - }); - - // All - Assert.Throws(() => - { - tagSystem.HasAllTags(sTagDummy, UnregisteredTag); - }); - Assert.Throws(() => - { - tagSystem.HasAllTags(sTagComponent, UnregisteredTag); - }); - // Cannot add the starting tag again Assert.That(tagSystem.AddTag(sTagComponent, StartingTag), Is.False); Assert.That(tagSystem.AddTags(sTagComponent, StartingTag, StartingTag), Is.False); @@ -215,6 +185,40 @@ namespace Content.IntegrationTests.Tests.Tag // No tags left in the component Assert.That(sTagComponent.Tags, Is.Empty); + + #if !DEBUG + return; + #endif + + // Single + Assert.Throws(() => + { + tagSystem.HasTag(sTagDummy, UnregisteredTag); + }); + Assert.Throws(() => + { + tagSystem.HasTag(sTagComponent, UnregisteredTag); + }); + + // Any + Assert.Throws(() => + { + tagSystem.HasAnyTag(sTagDummy, UnregisteredTag); + }); + Assert.Throws(() => + { + tagSystem.HasAnyTag(sTagComponent, UnregisteredTag); + }); + + // All + Assert.Throws(() => + { + tagSystem.HasAllTags(sTagDummy, UnregisteredTag); + }); + Assert.Throws(() => + { + tagSystem.HasAllTags(sTagComponent, UnregisteredTag); + }); }); await pairTracker.CleanReturnAsync(); }