Skip to content

Commit

Permalink
Unit test for ConverterGlobals.SupportedLanguages (#2304) #patch
Browse files Browse the repository at this point in the history
  • Loading branch information
IhateTrains authored Nov 10, 2024
1 parent fb8fb54 commit b62c6c5
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions ImperatorToCK3.UnitTests/ConverterGlobalsTests.cs
Original file line number Diff line number Diff line change
@@ -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);
}
}
}

0 comments on commit b62c6c5

Please sign in to comment.