From: Tayrtahn Date: Sun, 16 Mar 2025 21:32:08 +0000 (-0400) Subject: Let LocalizedDatasetPrototypeTest report multiple failures (#35876) X-Git-Url: https://git.smokeofanarchy.ru/gitweb.cgi?a=commitdiff_plain;h=deb3ed3ed23bf7a69626d324ca8eeb3b200a384b;p=space-station-14.git Let LocalizedDatasetPrototypeTest report multiple failures (#35876) --- diff --git a/Content.IntegrationTests/Tests/Localization/LocalizedDatasetPrototypeTest.cs b/Content.IntegrationTests/Tests/Localization/LocalizedDatasetPrototypeTest.cs index b30c0a370e..8d272545ce 100644 --- a/Content.IntegrationTests/Tests/Localization/LocalizedDatasetPrototypeTest.cs +++ b/Content.IntegrationTests/Tests/Localization/LocalizedDatasetPrototypeTest.cs @@ -19,16 +19,19 @@ public sealed class LocalizedDatasetPrototypeTest var protos = protoMan.EnumeratePrototypes().OrderBy(p => p.ID); - // Check each prototype - foreach (var proto in protos) + Assert.Multiple(() => { - // Check each value in the prototype - foreach (var locId in proto.Values) + // Check each prototype + foreach (var proto in protos) { - // Make sure the localization manager has a string for the LocId - Assert.That(localizationMan.HasString(locId), $"LocalizedDataset {proto.ID} with prefix \"{proto.Values.Prefix}\" specifies {proto.Values.Count} entries, but no localized string was found matching {locId}!"); + // Check each value in the prototype + foreach (var locId in proto.Values) + { + // Make sure the localization manager has a string for the LocId + Assert.That(localizationMan.HasString(locId), $"LocalizedDataset {proto.ID} with prefix \"{proto.Values.Prefix}\" specifies {proto.Values.Count} entries, but no localized string was found matching {locId}!"); + } } - } + }); await pair.CleanReturnAsync(); }