public void SpellSamoa()
        {
            Options options = TransliterateEngine.DefaultOptions();

            options.VowelCluster = ClusterPreference.Split;
            Assert.AreEqual("Samowa", engine.OneName("Samoa", options));
        }
        public void SpellZimbabwe()
        {
            Options options = TransliterateEngine.DefaultOptions();

            options.IsFinalEPronounced = true;
            Assert.AreEqual("Sinpapuwe", engine.OneName("Zimbabwe", options));
        }
        public void SpellKiribati()
        {
            Options options = TransliterateEngine.DefaultOptions();

            options.RLanguage = LanguageForR.TrilledTapped;
            Assert.AreEqual("Kilipasi", engine.OneName("Kiribati", options));
        }
        public void SpellRwanda()
        {
            Options options = TransliterateEngine.DefaultOptions();

            options.RLanguage = LanguageForR.TrilledTapped;
            Assert.AreEqual("Luwanta", engine.OneName("Rwanda", options));
        }
        public void SpellGuineaBissau()
        {
            //We will never do better, but we want the test to fail if we do worse.
            Assert.IsTrue(TransliterateEngine.DifferByOnlyOneLetter("Kinepisa", engine.OneName("Guinea-Bissau")));

            //Assert.AreEqual("Kinepisa", engine.OneName("Guinea-Bissau"));
        }
        public void SpellCameroon()
        {
            Options options = TransliterateEngine.DefaultOptions();

            options.RLanguage = LanguageForR.TrilledTapped;
            Assert.AreEqual("Kamelun", engine.OneName("Cameroon", options));
        }
        public void SpellVanuatu()
        {
            Options options = TransliterateEngine.DefaultOptions();

            options.VowelCluster = ClusterPreference.Split;
            Assert.AreEqual("Wanuwatu", engine.OneName("Vanuatu", options));
        }
 private void IsCloseEnough(string expected, string actual)
 {
     //string expected = "Isijopija";
     //string actual = engine.OneName("Ethiopia", options);
     Assert.IsTrue(
         TransliterateEngine.DifferByOnlyOneLetter(expected, actual),
         string.Format("Expected {0} found {1}", expected, actual));
 }
        public void SpellSierraLeone()
        {
            Options options = TransliterateEngine.DefaultOptions();

            options.RLanguage    = LanguageForR.TrilledTapped;
            options.VowelCluster = ClusterPreference.Split;
            Assert.AreEqual("Sijelalijon", engine.OneName("Sierra Leone", options));
        }
        [Ignore] //Can't make this pass.
        public void SpellAlgeria()
        {
            Options options = TransliterateEngine.DefaultOptions();

            options.RLanguage = LanguageForR.FrenchGerman;

            Assert.AreEqual("Sasali", engine.OneName("Algeria", options));
        }
        public void SpellBurkinaFaso()
        {
            Options options = TransliterateEngine.DefaultOptions();

            options.RLanguage = LanguageForR.FrenchGerman;

            Assert.AreEqual("Pukinapaso", engine.OneName("Burkina Faso", options));
        }
        public void SpellPapuaNewGuinea()
        {
            Options options = TransliterateEngine.DefaultOptions();

            options.VowelCluster = ClusterPreference.Split;
            Assert.AreEqual("Papuwanukineja", engine.OneName("Papua New Guinea", options));
            Assert.AreEqual("Papuwanijukini", engine.OneName("Papua Niugini", options));
        }
        public void SpellEritrea()
        {
            Options options = TransliterateEngine.DefaultOptions();

            options.RLanguage    = LanguageForR.TrilledTapped;
            options.VowelCluster = ClusterPreference.Split;
            Assert.AreEqual("Eliteja", engine.OneName("Eritrea", options));
        }
        public void SpellEnglishSingleLetterA()
        {
            Options options = TransliterateEngine.DefaultOptions();


            string tokipona = engine.OneName("a", options);

            Assert.AreEqual("a", tokipona);
        }
        public void SpellEnglishBeach()
        {
            Options options = TransliterateEngine.DefaultOptions();


            string tokipona = engine.OneName("beach", options);

            Assert.AreEqual("Pe", tokipona);
        }
        [Ignore] //Ran out of timne
        public void SpellEnglishSpasm()
        {
            Options options = TransliterateEngine.DefaultOptions();


            string tokipona = engine.OneName("spasm", options);

            Assert.AreEqual("Sasim", tokipona);
        }
        public void SpellEquatorialGuinea()
        {
            //Too hard, with 2 words
            Options options = TransliterateEngine.DefaultOptions();

            options.RLanguage    = LanguageForR.TrilledTapped;
            options.VowelCluster = ClusterPreference.Split;
            Assert.AreEqual("Kinejekatolija", engine.OneName("Guinea Equatorial", options));
        }
        public void SpellEnglishMary()
        {
            Options options = TransliterateEngine.DefaultOptions();

            options.RLanguage = LanguageForR.TrilledTapped;

            string tokipona = engine.OneName("Mery", options);

            Assert.AreEqual("Meli", tokipona);
        }
        public void SpellBotswana()
        {
            //Potana
            Options options = TransliterateEngine.DefaultOptions();

            options.ConsonantCluster = ClusterPreference.Split;
            options.NeutralVowel     = "u";

            Assert.AreEqual("Posuwana", engine.OneName("Botswana", options));
        }
        public void SpellEthiopia()
        {
            Options options = TransliterateEngine.DefaultOptions();

            options.VowelCluster = ClusterPreference.Split;

            string expected = "Isijopija";
            string actual   = engine.OneName("Ethiopia", options);

            IsCloseEnough(expected, actual);
        }
        public void SpellLiberia()
        {
            Options options = TransliterateEngine.DefaultOptions();

            options.RLanguage    = LanguageForR.English;
            options.VowelCluster = ClusterPreference.Split;

            string expected = "Lapewija";
            string actual   = engine.OneName("Liberia", options);

            IsCloseEnough(expected, actual);
        }
Example #22
0
 public void TestSingleLetterSame()
 {
     Assert.IsTrue(TransliterateEngine.DifferByOnlyOneLetter("a", "a"));
 }
Example #23
0
 public void RemoveDoubleConsonantsTs()
 {
     Assert.AreEqual("mata", TransliterateEngine.RemoveDoubleConstants("matta"));
 }
Example #24
0
 public void LeaveConsonantClustersWithNk()
 {
     Assert.AreEqual("nanka", TransliterateEngine.DropConsonantClusters("nanka"));
 }
Example #25
0
 public void TestMayLetterDifferent()
 {
     Assert.IsTrue(TransliterateEngine.DifferByOnlyOneLetter("aadsfasdf", "aadsfastf"));
 }