Exemplo n.º 1
0
        public void CultureMatchesWithOwnerTitle()
        {
            var reader = new BufferedReader(
                "link = { ck3 = culture imp = qwe imp = test imp = poi religion = thereligion ck3Province = 4 owner = e_roman_empire }"
                );
            var culMapper = new CultureMapper(reader);

            Assert.Equal("culture", culMapper.Match("test", "thereligion", 4, 49, "e_roman_empire"));
        }
Exemplo n.º 2
0
        public void NonMatchGivesEmptyOptional()
        {
            var reader = new BufferedReader(
                "link = { ck3 = culture imp = culture }"
                );
            var culMapper = new CultureMapper(reader);

            Assert.Null(culMapper.Match("nonMatchingCulture", "", 56, 49, "e_title"));
        }
Exemplo n.º 3
0
        public void CultureFailsWithWrongCapital()
        {
            var reader = new BufferedReader(
                "link = { ck3 = culture imp = qwe imp = test imp = poi religion = thereligion ck3Province = 4 }"
                );
            var culMapper = new CultureMapper(reader);

            Assert.Null(culMapper.Match("test", "thereligion", 3, 49, "e_title"));
        }
Exemplo n.º 4
0
        public void CultureFailsWithNoReligion()
        {
            var reader = new BufferedReader(
                "link = { ck3 = culture imp = qwe imp = test imp = poi religion = thereligion }"
                );
            var culMapper = new CultureMapper(reader);

            Assert.Null(culMapper.Match("test", "", 56, 49, "e_title"));
        }
Exemplo n.º 5
0
        public void CultureMatchesWithReligion()
        {
            var reader = new BufferedReader(
                "link = { ck3 = culture imp = qwe imp = test imp = poi religion = thereligion }"
                );
            var culMapper = new CultureMapper(reader);

            Assert.Equal("culture", culMapper.Match("test", "thereligion", 56, 49, "e_title"));
        }
Exemplo n.º 6
0
        public void SimpleCultureCorrectlyMatches()
        {
            var reader = new BufferedReader(
                "link = { ck3 = culture imp = qwe imp = test imp = poi }"
                );
            var culMapper = new CultureMapper(reader);

            Assert.Equal("culture", culMapper.Match("test", "", 56, 49, "e_title"));
        }