Skip to content

Commit

Permalink
Rename DefinesTests to ImperatorDefinesTests
Browse files Browse the repository at this point in the history
  • Loading branch information
IhateTrains committed Oct 20, 2024
1 parent db956db commit 9f7d534
Showing 1 changed file with 3 additions and 4 deletions.
Original file line number Diff line number Diff line change
@@ -1,18 +1,17 @@
using commonItems;
using commonItems.Mods;
using ImperatorToCK3.Imperator;
using Xunit;

namespace ImperatorToCK3.UnitTests.Imperator;

public class DefinesTests {
public class ImperatorDefinesTests {
private const string ImperatorRoot = "TestFiles/Imperator/game";
private readonly ModFilesystem imperatorModFS = new(ImperatorRoot, System.Array.Empty<Mod>());

[Fact]
public void CohortSizeCanBeRead() {
var defines = new Defines();
var defines = new ImperatorDefines();
defines.LoadDefines(imperatorModFS);
Assert.Equal(601, int.Parse(defines.GetValue("NUnit", "COHORT_SIZE")!));
Assert.Equal(601, defines.CohortSize);
}
}

0 comments on commit 9f7d534

Please sign in to comment.