Skip to content

Commit

Permalink
Unit test for ConverterGlobals.SupportedLanguages
Browse files Browse the repository at this point in the history
  • Loading branch information
IhateTrains committed Nov 10, 2024
1 parent 63273cc commit 9887a38
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 9887a38

Please sign in to comment.