public void TagCanBeRegistered() { var mapper = new TagTitleMapper(tagTitleMappingsPath, governorshipTitleMappingsPath); mapper.RegisterTag("BOR", "e_boredom"); var match = mapper.GetTitleForTag("BOR", CountryRank.localPower); Assert.Equal("e_boredom", match); }
public void TagCanBeRegistered() { var mapper = new TagTitleMapper(tagTitleMappingsPath, governorshipTitleMappingsPath); mapper.RegisterTag("BOR", "e_boredom"); var country = Country.Parse(new BufferedReader("tag=BOR"), 1); for (ulong i = 1; i < 20; ++i) // makes the country a local power { var province = new ImperatorToCK3.Imperator.Provinces.Province(i); country.RegisterProvince(province); } var match = mapper.GetTitleForTag(country); Assert.Equal("e_boredom", match); }