From b62c6c5fd6f3e33af5222c1a6d2bc9aade064fe0 Mon Sep 17 00:00:00 2001 From: IhateTrains Date: Sun, 10 Nov 2024 11:06:38 +0100 Subject: [PATCH] Unit test for ConverterGlobals.SupportedLanguages (#2304) #patch --- ImperatorToCK3.UnitTests/ConverterGlobalsTests.cs | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 ImperatorToCK3.UnitTests/ConverterGlobalsTests.cs diff --git a/ImperatorToCK3.UnitTests/ConverterGlobalsTests.cs b/ImperatorToCK3.UnitTests/ConverterGlobalsTests.cs new file mode 100644 index 000000000..e0922b93f --- /dev/null +++ b/ImperatorToCK3.UnitTests/ConverterGlobalsTests.cs @@ -0,0 +1,15 @@ +using System.Linq; +using Xunit; + +namespace ImperatorToCK3.UnitTests; + +public class ConverterGlobalsTests { + [Fact] + public void SupportedLanguagesContainsPrimaryLanguageAndSecondaryLanguages() { + var supportedLanguages = ConverterGlobals.SupportedLanguages.ToArray(); + Assert.Contains(ConverterGlobals.PrimaryLanguage, supportedLanguages); + foreach (var secondary in ConverterGlobals.SecondaryLanguages) { + Assert.Contains(secondary, supportedLanguages); + } + } +} \ No newline at end of file