Improve LocalizedDataset test to check for low Count (#36848)

* Improve LocalizedDataset test to check for low Count

* Fix missing entries for FigurinesFootsoldier
This commit is contained in:
Tayrtahn
2025-04-23 05:29:13 -04:00
committed by GitHub
parent 3ac8bc71f1
commit e529bc6196
2 changed files with 5 additions and 1 deletions

View File

@@ -30,6 +30,10 @@ public sealed class LocalizedDatasetPrototypeTest
// 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 that count isn't set too low
var nextId = proto.Values.Prefix + (proto.Values.Count + 1);
Assert.That(localizationMan.HasString(nextId), Is.False, $"LocalizedDataset {proto.ID} with prefix \"{proto.Values.Prefix}\" specifies {proto.Values.Count} entries, but a localized string exists with ID {nextId}! Does count need to be raised?");
}
});