]> git.smokeofanarchy.ru Git - space-station-14.git/commitdiff
Let LocalizedDatasetPrototypeTest report multiple failures (#35876)
authorTayrtahn <tayrtahn@gmail.com>
Sun, 16 Mar 2025 21:32:08 +0000 (17:32 -0400)
committerGitHub <noreply@github.com>
Sun, 16 Mar 2025 21:32:08 +0000 (22:32 +0100)
Content.IntegrationTests/Tests/Localization/LocalizedDatasetPrototypeTest.cs

index b30c0a370e0b054cba35a27933a9eba67bc02a17..8d272545cee00141ccfd7e30262e8d8543412feb 100644 (file)
@@ -19,16 +19,19 @@ public sealed class LocalizedDatasetPrototypeTest
 
         var protos = protoMan.EnumeratePrototypes<LocalizedDatasetPrototype>().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();
     }