From deb3ed3ed23bf7a69626d324ca8eeb3b200a384b Mon Sep 17 00:00:00 2001 From: Tayrtahn Date: Sun, 16 Mar 2025 17:32:08 -0400 Subject: [PATCH] Let LocalizedDatasetPrototypeTest report multiple failures (#35876) --- .../LocalizedDatasetPrototypeTest.cs | 17 ++++++++++------- 1 file changed, 10 insertions(+), 7 deletions(-) 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(); } -- 2.51.2