Example #1
0
 public void TestBooleanChecks()
 {
     var tools = new KanaTools();
     Assert.IsTrue(tools.IsHiragana("ものの"));
     Assert.IsFalse(tools.IsHiragana("キョクタン"));
     Assert.IsFalse(tools.IsHiragana("romaji"));
     Assert.IsTrue(tools.IsKatakana("キョクタン"));
     Assert.IsTrue(tools.IsKana("キョクタンものの"));
     Assert.IsTrue(tools.IsRomaji("romaji"));
 }
Example #2
0
 /* Constructor and settings */
 public Romaji(string romaji)
 {
     _romaji = romaji;
     _tools = new KanaTools();
 }
Example #3
0
 /* Constructor and settings */
 public Kana(string kana)
 {
     _kana = kana;
     _tools = new KanaTools();
 }
Example #4
0
        /* Constructor and settings */

        public Kana(string kana)
        {
            _kana  = kana;
            _tools = new KanaTools();
        }
Example #5
0
        /* Constructor and settings */

        public Romaji(string romaji)
        {
            _romaji = romaji;
            _tools  = new KanaTools();
        }