コード例 #1
0
        public void ReplaceName()
        {
            File.Delete(TestUtil.GetTestFile("desclocalize\\symbols_working.xml"));
            File.Copy(TestUtil.GetTestFile("desclocalize\\symbols.xml"), TestUtil.GetTestFile("desclocalize\\symbols_working.xml"));

            SymbolDB            symbolDB  = new SymbolDB(TestUtil.GetTestFile("desclocalize\\symbols_working.xml"));
            DescriptionLocalize localizer = new DescriptionLocalize(symbolDB);

            Dictionary <string, List <SymbolText> > dictionary = new Dictionary <string, List <SymbolText> >();

            dictionary["5.20"] = new List <SymbolText>()
            {
                new SymbolText()
                {
                    Lang = "de", Text = "New German Statue"
                },
                new SymbolText()
                {
                    Lang = "en", Text = "New English Statue"
                },
            };

            localizer.CustomizeDescriptionNames(dictionary);

            Assert.AreEqual("New English Statue", symbolDB["5.20"].GetName("en"));
            Assert.AreEqual("New German Statue", symbolDB["5.20"].GetName("de"));
        }
コード例 #2
0
        public void ChangeSymbolText()
        {
            File.Delete(TestUtil.GetTestFile("desclocalize\\symbols_working.xml"));
            File.Copy(TestUtil.GetTestFile("desclocalize\\symbols.xml"), TestUtil.GetTestFile("desclocalize\\symbols_working.xml"));

            SymbolDB            symbolDB  = new SymbolDB(TestUtil.GetTestFile("desclocalize\\symbols_working.xml"));
            DescriptionLocalize localizer = new DescriptionLocalize(symbolDB);

            Dictionary <string, List <SymbolText> > dictionary = new Dictionary <string, List <SymbolText> >();

            dictionary["1.3"] = new List <SymbolText>()
            {
                new SymbolText()
                {
                    Lang = "en", Plural = false, Gender = "", Text = "sloping valley thing"
                },
            };

            localizer.CustomizeDescriptionTexts(dictionary);

            SymbolText[] expectedReentrants =
            {
                new SymbolText()
                {
                    Lang = "en", Plural = false, Gender = "", Text = "sloping valley thing"
                }
            };

            CollectionAssert.AreEquivalent(expectedReentrants, symbolDB["1.3"].SymbolTexts);
        }
コード例 #3
0
        public void AddName()
        {
            File.Delete(TestUtil.GetTestFile("desclocalize\\symbols_working.xml"));
            File.Copy(TestUtil.GetTestFile("desclocalize\\symbols.xml"), TestUtil.GetTestFile("desclocalize\\symbols_working.xml"));

            SymbolDB            symbolDB  = new SymbolDB(TestUtil.GetTestFile("desclocalize\\symbols_working.xml"));
            DescriptionLocalize localizer = new DescriptionLocalize(symbolDB);

            Dictionary <string, List <SymbolText> > dictionary = new Dictionary <string, List <SymbolText> >();

            dictionary["1.1"] = new List <SymbolText>()
            {
                new SymbolText()
                {
                    Lang = "de", Text = "GermanTerrace"
                },
                new SymbolText()
                {
                    Lang = "fr", Text = "FrenchTerrace"
                },
            };

            localizer.CustomizeDescriptionNames(dictionary);

            Assert.AreEqual("Terrace", symbolDB["1.1"].GetName("en"));
            Assert.AreEqual("GermanTerrace", symbolDB["1.1"].GetName("de"));
            Assert.AreEqual("FrenchTerrace", symbolDB["1.1"].GetName("fr"));
        }
コード例 #4
0
        public void AddLanguage()
        {
            File.Delete(TestUtil.GetTestFile("desclocalize\\symbols_working.xml"));
            File.Copy(TestUtil.GetTestFile("desclocalize\\symbols.xml"), TestUtil.GetTestFile("desclocalize\\symbols_working.xml"));

            SymbolDB symbolDB = new SymbolDB(TestUtil.GetTestFile("desclocalize\\symbols_working.xml"));
            DescriptionLocalize localizer = new DescriptionLocalize(symbolDB);

            localizer.AddLanguage(new SymbolLanguage("Dutch", "nl", false, false, false, null, false, null), "en");
            localizer.AddLanguage(new SymbolLanguage("Korean", "ko", true, false, true, new string[] { "masculine", "feminine" }, false, null), "en");

            SymbolLanguage[] expected = {
                                            new SymbolLanguage("English", "en", true, false, false, null, false, null),
                                            new SymbolLanguage("Francais", "fr", true, true, true, new string[] { "masculine", "feminine" }, false, null),
                                            new SymbolLanguage("Deutsch", "de", true, true, true, new string[] {"masculine", "feminine", "neuter"}, false, null),
                                            new SymbolLanguage("Dutch", "nl", false, false, false, null, false, null),
                                            new SymbolLanguage("Korean", "ko", true, false, true, new string[] { "masculine", "feminine" }, false, null)};

            List<SymbolLanguage> languages = new List<SymbolLanguage>(symbolDB.AllLanguages);

            CollectionAssert.AreEquivalent(expected, languages);

            SymbolText[] expectedTerraces = {
                new SymbolText() {Lang = "en", Plural = false, Gender = "", Text = "terrace", Case="", CaseOfModified = ""},
                new SymbolText() {Lang = "en", Plural = true, Gender = "", Text = "terraces", Case="", CaseOfModified = ""},
                new SymbolText() {Lang = "nl", Plural = false, Gender = "", Text = "terrace", Case="", CaseOfModified = ""},
                new SymbolText() {Lang = "nl", Plural = true, Gender = "", Text = "terraces", Case="", CaseOfModified = ""},
                new SymbolText() {Lang = "ko", Plural = false, Gender = "", Text = "terrace", Case="", CaseOfModified = ""},
                new SymbolText() {Lang = "ko", Plural = true, Gender = "", Text = "terraces", Case="", CaseOfModified = ""},
            };
            CollectionAssert.AreEquivalent(expectedTerraces, symbolDB["1.1"].SymbolTexts);

            Assert.AreEqual("Terrace", symbolDB["1.1"].GetName("nl"));
            Assert.AreEqual("Terrace", symbolDB["1.1"].GetName("ko"));
        }
コード例 #5
0
        public void AddLanguage()
        {
            File.Delete(TestUtil.GetTestFile("desclocalize\\symbols_working.xml"));
            File.Copy(TestUtil.GetTestFile("desclocalize\\symbols.xml"), TestUtil.GetTestFile("desclocalize\\symbols_working.xml"));

            SymbolDB            symbolDB  = new SymbolDB(TestUtil.GetTestFile("desclocalize\\symbols_working.xml"));
            DescriptionLocalize localizer = new DescriptionLocalize(symbolDB);

            localizer.AddLanguage(new SymbolLanguage("Dutch", "nl", false, false, false, null, false, null), "en");
            localizer.AddLanguage(new SymbolLanguage("Korean", "ko", true, false, true, new string[] { "masculine", "feminine" }, false, null), "en");

            SymbolLanguage[] expected =
            {
                new SymbolLanguage("English",  "en", true,  false, false, null,        false,      null),
                new SymbolLanguage("Francais", "fr", true,  true,  true,  new string[] { "masculine","feminine" }, false, null),
                new SymbolLanguage("Deutsch",  "de", true,  true,  true,  new string[] { "masculine","feminine", "neuter" }, false,               null),
                new SymbolLanguage("Dutch",    "nl", false, false, false, null,        false,      null),
                new SymbolLanguage("Korean",   "ko", true,  false, true,  new string[] { "masculine","feminine" }, false, null)
            };

            List <SymbolLanguage> languages = new List <SymbolLanguage>(symbolDB.AllLanguages);

            CollectionAssert.AreEquivalent(expected, languages);

            SymbolText[] expectedTerraces =
            {
                new SymbolText()
                {
                    Lang = "en", Plural = false, Gender = "", Text = "terrace", Case = "", CaseOfModified = ""
                },
                new SymbolText()
                {
                    Lang = "en", Plural = true, Gender = "", Text = "terraces", Case = "", CaseOfModified = ""
                },
                new SymbolText()
                {
                    Lang = "nl", Plural = false, Gender = "", Text = "terrace", Case = "", CaseOfModified = ""
                },
                new SymbolText()
                {
                    Lang = "nl", Plural = true, Gender = "", Text = "terraces", Case = "", CaseOfModified = ""
                },
                new SymbolText()
                {
                    Lang = "ko", Plural = false, Gender = "", Text = "terrace", Case = "", CaseOfModified = ""
                },
                new SymbolText()
                {
                    Lang = "ko", Plural = true, Gender = "", Text = "terraces", Case = "", CaseOfModified = ""
                },
            };
            CollectionAssert.AreEquivalent(expectedTerraces, symbolDB["1.1"].SymbolTexts);

            Assert.AreEqual("Terrace", symbolDB["1.1"].GetName("nl"));
            Assert.AreEqual("Terrace", symbolDB["1.1"].GetName("ko"));
        }
コード例 #6
0
        public void ReplaceLanguage()
        {
            File.Delete(TestUtil.GetTestFile("desclocalize\\symbols_working.xml"));
            File.Copy(TestUtil.GetTestFile("desclocalize\\symbols.xml"), TestUtil.GetTestFile("desclocalize\\symbols_working.xml"));

            SymbolDB            symbolDB  = new SymbolDB(TestUtil.GetTestFile("desclocalize\\symbols_working.xml"));
            DescriptionLocalize localizer = new DescriptionLocalize(symbolDB);

            localizer.AddLanguage(new SymbolLanguage("Anglais", "en", true, false, true, new string[] { "male", "female" }, false, null), "en");
            localizer.AddLanguage(new SymbolLanguage("Korean", "ko", true, false, true, new string[] { "masculine", "feminine" }, false, null), "en");
            localizer.AddLanguage(new SymbolLanguage("Korean", "ko", false, false, false, null, false, null), "en");

            SymbolLanguage[] expected =
            {
                new SymbolLanguage("Anglais",  "en", true,  false, true,  new string[] { "male",      "female"   }, false, null),
                new SymbolLanguage("Francais", "fr", true,  true,  true,  new string[] { "masculine", "feminine" }, false, null),
                new SymbolLanguage("Deutsch",  "de", true,  true,  true,  new string[] { "masculine", "feminine", "neuter"}, false, null),
                new SymbolLanguage("Korean",   "ko", false, false, false, null, false, null)
            };

            List <SymbolLanguage> languages = new List <SymbolLanguage>(symbolDB.AllLanguages);

            CollectionAssert.AreEquivalent(expected, languages);
        }
コード例 #7
0
        public void Merge()
        {
            File.Delete(TestUtil.GetTestFile("desclocalize\\symbols_working.xml"));
            File.Copy(TestUtil.GetTestFile("desclocalize\\symbols.xml"), TestUtil.GetTestFile("desclocalize\\symbols_working.xml"));

            SymbolDB            symbolDB  = new SymbolDB(TestUtil.GetTestFile("desclocalize\\symbols_working.xml"));
            DescriptionLocalize localizer = new DescriptionLocalize(symbolDB);

            localizer.MergeSymbolsFile(TestUtil.GetTestFile("desclocalize\\symbols-to-merge.xml"), "fr");

            SymbolLanguage[] expected =
            {
                new SymbolLanguage("English", "en", true, false, false, null,        false,      null),
                new SymbolLanguage("French",  "fr", true, true,  true,  new string[] { "masculine","feminine" }, false, null),
                new SymbolLanguage("Deutsch", "de", true, true,  true,  new string[] { "masculine","feminine", "neuter" }, false, null)
            };

            List <SymbolLanguage> languages = new List <SymbolLanguage>(symbolDB.AllLanguages);

            CollectionAssert.AreEquivalent(expected, languages);

            SymbolText[] expectedTexts =
            {
                new SymbolText()
                {
                    Lang = "en", Plural = false, Gender = "", Text = "Length {0}, climb {1}"
                },
                new SymbolText()
                {
                    Lang = "fr", Plural = false, Gender = "feminine", Text = "Frenchy Length {0}, climb {1}"
                },
            };
            List <SymbolText> actualTexts = symbolDB["course_length_climb"].SymbolTexts;

            CollectionAssert.AreEquivalent(expectedTexts, actualTexts);

            expectedTexts = new SymbolText[] {
                new SymbolText()
                {
                    Lang = "en", Plural = false, Gender = "", Text = "overgrown {0}"
                },
                new SymbolText()
                {
                    Lang = "fr", Plural = false, Gender = "feminine", Text = "fr sing fem overgrown {0}"
                },
                new SymbolText()
                {
                    Lang = "fr", Plural = true, Gender = "feminine", Text = "fr plur fem overgrown {0}"
                },
                new SymbolText()
                {
                    Lang = "fr", Plural = false, Gender = "masculine", Text = "fr sing masc overgrown {0}"
                },
                new SymbolText()
                {
                    Lang = "fr", Plural = true, Gender = "masculine", Text = "fr plur masc overgrown {0}"
                },
            };
            actualTexts = symbolDB["8.4"].SymbolTexts;

            CollectionAssert.AreEquivalent(expectedTexts, actualTexts);

            Assert.AreEqual("Fr Overgrown", symbolDB["8.4"].GetName("fr"));
        }
コード例 #8
0
        public void AddSymbolText()
        {
            File.Delete(TestUtil.GetTestFile("desclocalize\\symbols_working.xml"));
            File.Copy(TestUtil.GetTestFile("desclocalize\\symbols.xml"), TestUtil.GetTestFile("desclocalize\\symbols_working.xml"));

            SymbolDB            symbolDB  = new SymbolDB(TestUtil.GetTestFile("desclocalize\\symbols_working.xml"));
            DescriptionLocalize localizer = new DescriptionLocalize(symbolDB);

            Dictionary <string, List <SymbolText> > dictionary = new Dictionary <string, List <SymbolText> >();

            dictionary["1.1"] = new List <SymbolText>()
            {
                new SymbolText()
                {
                    Lang = "de", Plural = false, Gender = "masculine", Text = "german-terrace", Case = "", CaseOfModified = ""
                },
                new SymbolText()
                {
                    Lang = "de", Plural = true, Gender = "masculine", Text = "german-terraces", Case = "", CaseOfModified = ""
                },
                new SymbolText()
                {
                    Lang = "fr", Plural = false, Gender = "feminine", Text = "french-terrace", Case = "", CaseOfModified = ""
                },
                new SymbolText()
                {
                    Lang = "fr", Plural = true, Gender = "feminine", Text = "french-terraces", Case = "", CaseOfModified = ""
                },
            };
            dictionary["5.20"] = new List <SymbolText>()
            {
                new SymbolText()
                {
                    Lang = "de", Plural = false, Gender = "neuter", Text = "german-statue", Case = "", CaseOfModified = ""
                },
                new SymbolText()
                {
                    Lang = "de", Plural = true, Gender = "neuter", Text = "german-statues", Case = "", CaseOfModified = ""
                },
            };

            localizer.CustomizeDescriptionTexts(dictionary);

            SymbolText[] expectedTerraces =
            {
                new SymbolText()
                {
                    Lang = "en", Plural = false, Gender = "", Text = "terrace", Case = "", CaseOfModified = ""
                },
                new SymbolText()
                {
                    Lang = "en", Plural = true, Gender = "", Text = "terraces", Case = "", CaseOfModified = ""
                },
                new SymbolText()
                {
                    Lang = "de", Plural = false, Gender = "masculine", Text = "german-terrace", Case = "", CaseOfModified = ""
                },
                new SymbolText()
                {
                    Lang = "de", Plural = true, Gender = "masculine", Text = "german-terraces", Case = "", CaseOfModified = ""
                },
                new SymbolText()
                {
                    Lang = "fr", Plural = false, Gender = "feminine", Text = "french-terrace", Case = "", CaseOfModified = ""
                },
                new SymbolText()
                {
                    Lang = "fr", Plural = true, Gender = "feminine", Text = "french-terraces", Case = "", CaseOfModified = ""
                }
            };
            SymbolText[] expectedStatues =
            {
                new SymbolText()
                {
                    Lang = "en", Plural = false, Gender = "", Text = "statue", Case = "", CaseOfModified = ""
                },
                new SymbolText()
                {
                    Lang = "en", Plural = true, Gender = "", Text = "statues", Case = "", CaseOfModified = ""
                },
                new SymbolText()
                {
                    Lang = "de", Plural = false, Gender = "neuter", Text = "german-statue", Case = "", CaseOfModified = ""
                },
                new SymbolText()
                {
                    Lang = "de", Plural = true, Gender = "neuter", Text = "german-statues", Case = "", CaseOfModified = ""
                },
            };

            CollectionAssert.AreEquivalent(expectedTerraces, symbolDB["1.1"].SymbolTexts);
            CollectionAssert.AreEquivalent(expectedStatues, symbolDB["5.20"].SymbolTexts);
        }
コード例 #9
0
        public void AddName()
        {
            File.Delete(TestUtil.GetTestFile("desclocalize\\symbols_working.xml"));
            File.Copy(TestUtil.GetTestFile("desclocalize\\symbols.xml"), TestUtil.GetTestFile("desclocalize\\symbols_working.xml"));

            SymbolDB symbolDB = new SymbolDB(TestUtil.GetTestFile("desclocalize\\symbols_working.xml"));
            DescriptionLocalize localizer = new DescriptionLocalize(symbolDB);

            Dictionary<string, List<SymbolText>> dictionary = new Dictionary<string, List<SymbolText>>();

            dictionary["1.1"] = new List<SymbolText>()
            {
                new SymbolText() {Lang = "de", Text = "GermanTerrace"},
                new SymbolText() {Lang = "fr", Text = "FrenchTerrace"},
            };

            localizer.CustomizeDescriptionNames(dictionary);

            Assert.AreEqual("Terrace", symbolDB["1.1"].GetName("en"));
            Assert.AreEqual("GermanTerrace", symbolDB["1.1"].GetName("de"));
            Assert.AreEqual("FrenchTerrace", symbolDB["1.1"].GetName("fr"));
        }
コード例 #10
0
        public void ReplaceName()
        {
            File.Delete(TestUtil.GetTestFile("desclocalize\\symbols_working.xml"));
            File.Copy(TestUtil.GetTestFile("desclocalize\\symbols.xml"), TestUtil.GetTestFile("desclocalize\\symbols_working.xml"));

            SymbolDB symbolDB = new SymbolDB(TestUtil.GetTestFile("desclocalize\\symbols_working.xml"));
            DescriptionLocalize localizer = new DescriptionLocalize(symbolDB);

            Dictionary<string, List<SymbolText>> dictionary = new Dictionary<string, List<SymbolText>>();

            dictionary["5.20"] = new List<SymbolText>()
            {
                new SymbolText() {Lang = "de", Text = "New German Statue"},
                new SymbolText() {Lang = "en", Text = "New English Statue"},
            };

            localizer.CustomizeDescriptionNames(dictionary);

            Assert.AreEqual("New English Statue", symbolDB["5.20"].GetName("en"));
            Assert.AreEqual("New German Statue", symbolDB["5.20"].GetName("de"));
        }
コード例 #11
0
        public void ReplaceLanguage()
        {
            File.Delete(TestUtil.GetTestFile("desclocalize\\symbols_working.xml"));
            File.Copy(TestUtil.GetTestFile("desclocalize\\symbols.xml"), TestUtil.GetTestFile("desclocalize\\symbols_working.xml"));

            SymbolDB symbolDB = new SymbolDB(TestUtil.GetTestFile("desclocalize\\symbols_working.xml"));
            DescriptionLocalize localizer = new DescriptionLocalize(symbolDB);

            localizer.AddLanguage(new SymbolLanguage("Anglais", "en", true, false, true, new string[] { "male", "female" }, false, null), "en");
            localizer.AddLanguage(new SymbolLanguage("Korean", "ko", true, false, true, new string[] { "masculine", "feminine" }, false, null), "en");
            localizer.AddLanguage(new SymbolLanguage("Korean", "ko", false, false, false, null, false, null), "en");

            SymbolLanguage[] expected = {
                                            new SymbolLanguage("Anglais", "en", true, false, true, new string[] { "male", "female" }, false, null),
                                            new SymbolLanguage("Francais", "fr", true, true, true, new string[] { "masculine", "feminine" }, false, null),
                                            new SymbolLanguage("Deutsch", "de", true, true, true, new string[] {"masculine", "feminine", "neuter"}, false, null),
                                            new SymbolLanguage("Korean", "ko", false, false, false, null, false, null) };

            List<SymbolLanguage> languages = new List<SymbolLanguage>(symbolDB.AllLanguages);

            CollectionAssert.AreEquivalent(expected, languages);
        }
コード例 #12
0
        public void Merge()
        {
            File.Delete(TestUtil.GetTestFile("desclocalize\\symbols_working.xml"));
            File.Copy(TestUtil.GetTestFile("desclocalize\\symbols.xml"), TestUtil.GetTestFile("desclocalize\\symbols_working.xml"));

            SymbolDB symbolDB = new SymbolDB(TestUtil.GetTestFile("desclocalize\\symbols_working.xml"));
            DescriptionLocalize localizer = new DescriptionLocalize(symbolDB);

            localizer.MergeSymbolsFile(TestUtil.GetTestFile("desclocalize\\symbols-to-merge.xml"), "fr");

            SymbolLanguage[] expected = {
                                            new SymbolLanguage("English", "en", true, false, false, null, false, null),
                                            new SymbolLanguage("French", "fr", true, true, true, new string[] { "masculine", "feminine" }, false, null),
                                            new SymbolLanguage("Deutsch", "de", true, true, true, new string[] {"masculine", "feminine", "neuter"}, false, null)};

            List<SymbolLanguage> languages = new List<SymbolLanguage>(symbolDB.AllLanguages);

            CollectionAssert.AreEquivalent(expected, languages);

            SymbolText[] expectedTexts = {
                new SymbolText() {Lang = "en", Plural = false, Gender = "", Text = "Length {0}, climb {1}"},
                new SymbolText() {Lang = "fr", Plural = false, Gender = "feminine", Text = "Frenchy Length {0}, climb {1}"},
            };
            List<SymbolText> actualTexts = symbolDB["course_length_climb"].SymbolTexts;

            CollectionAssert.AreEquivalent(expectedTexts, actualTexts);

            expectedTexts = new SymbolText[] {
                new SymbolText() {Lang = "en", Plural = false, Gender = "", Text = "overgrown {0}"},
                new SymbolText() {Lang = "fr", Plural = false, Gender = "feminine", Text = "fr sing fem overgrown {0}"},
                new SymbolText() {Lang = "fr", Plural = true, Gender = "feminine", Text = "fr plur fem overgrown {0}"},
                new SymbolText() {Lang = "fr", Plural = false, Gender = "masculine", Text = "fr sing masc overgrown {0}"},
                new SymbolText() {Lang = "fr", Plural = true, Gender = "masculine", Text = "fr plur masc overgrown {0}"},
            };
            actualTexts = symbolDB["8.4"].SymbolTexts;

            CollectionAssert.AreEquivalent(expectedTexts, actualTexts);

            Assert.AreEqual("Fr Overgrown", symbolDB["8.4"].GetName("fr"));
        }
コード例 #13
0
        public void ChangeSymbolText()
        {
            File.Delete(TestUtil.GetTestFile("desclocalize\\symbols_working.xml"));
            File.Copy(TestUtil.GetTestFile("desclocalize\\symbols.xml"), TestUtil.GetTestFile("desclocalize\\symbols_working.xml"));

            SymbolDB symbolDB = new SymbolDB(TestUtil.GetTestFile("desclocalize\\symbols_working.xml"));
            DescriptionLocalize localizer = new DescriptionLocalize(symbolDB);

            Dictionary<string, List<SymbolText>> dictionary = new Dictionary<string, List<SymbolText>>();

            dictionary["1.3"] = new List<SymbolText>()
            {
                new SymbolText() {Lang = "en", Plural = false, Gender = "", Text = "sloping valley thing"},
            };

            localizer.CustomizeDescriptionTexts(dictionary);

            SymbolText[] expectedReentrants = {
                new SymbolText() {Lang = "en", Plural = false, Gender = "", Text = "sloping valley thing"}
            };

            CollectionAssert.AreEquivalent(expectedReentrants, symbolDB["1.3"].SymbolTexts);
        }
コード例 #14
0
        public void AddSymbolText()
        {
            File.Delete(TestUtil.GetTestFile("desclocalize\\symbols_working.xml"));
            File.Copy(TestUtil.GetTestFile("desclocalize\\symbols.xml"), TestUtil.GetTestFile("desclocalize\\symbols_working.xml"));

            SymbolDB symbolDB = new SymbolDB(TestUtil.GetTestFile("desclocalize\\symbols_working.xml"));
            DescriptionLocalize localizer = new DescriptionLocalize(symbolDB);

            Dictionary<string, List<SymbolText>> dictionary = new Dictionary<string, List<SymbolText>>();

            dictionary["1.1"] = new List<SymbolText>()
            {
                new SymbolText() {Lang = "de", Plural = false, Gender = "masculine", Text = "german-terrace", Case="", CaseOfModified=""},
                new SymbolText() {Lang = "de", Plural = true, Gender = "masculine", Text = "german-terraces", Case="", CaseOfModified=""},
                new SymbolText() {Lang = "fr", Plural = false, Gender = "feminine", Text = "french-terrace", Case="", CaseOfModified=""},
                new SymbolText() {Lang = "fr", Plural = true, Gender = "feminine", Text = "french-terraces", Case="", CaseOfModified=""},
            };
            dictionary["5.20"] = new List<SymbolText>()
            {
                new SymbolText() {Lang = "de", Plural = false, Gender = "neuter", Text = "german-statue", Case="", CaseOfModified=""},
                new SymbolText() {Lang = "de", Plural = true, Gender = "neuter", Text = "german-statues", Case="", CaseOfModified=""},
            };

            localizer.CustomizeDescriptionTexts(dictionary);

            SymbolText[] expectedTerraces = {
                new SymbolText() {Lang = "en", Plural = false, Gender = "", Text = "terrace", Case="", CaseOfModified=""},
                new SymbolText() {Lang = "en", Plural = true, Gender = "", Text = "terraces", Case="", CaseOfModified=""},
                new SymbolText() {Lang = "de", Plural = false, Gender = "masculine", Text = "german-terrace", Case="", CaseOfModified=""},
                new SymbolText() {Lang = "de", Plural = true, Gender = "masculine", Text = "german-terraces", Case="", CaseOfModified=""},
                new SymbolText() {Lang = "fr", Plural = false, Gender = "feminine", Text = "french-terrace", Case="", CaseOfModified=""},
                new SymbolText() {Lang = "fr", Plural = true, Gender = "feminine", Text = "french-terraces", Case="", CaseOfModified=""}
            };
            SymbolText[] expectedStatues = {
                new SymbolText() {Lang = "en", Plural = false, Gender = "", Text = "statue", Case="", CaseOfModified=""},
                new SymbolText() {Lang = "en", Plural = true, Gender = "", Text = "statues", Case="", CaseOfModified=""},
                new SymbolText() {Lang = "de", Plural = false, Gender = "neuter", Text = "german-statue", Case="", CaseOfModified=""},
                new SymbolText() {Lang = "de", Plural = true, Gender = "neuter", Text = "german-statues", Case="", CaseOfModified=""},
            };

            CollectionAssert.AreEquivalent(expectedTerraces, symbolDB["1.1"].SymbolTexts);
            CollectionAssert.AreEquivalent(expectedStatues, symbolDB["5.20"].SymbolTexts);
        }