示例#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"));
 }
示例#2
0
 /* Constructor and settings */
 public Romaji(string romaji)
 {
     _romaji = romaji;
     _tools = new KanaTools();
 }
示例#3
0
 /* Constructor and settings */
 public Kana(string kana)
 {
     _kana = kana;
     _tools = new KanaTools();
 }
示例#4
0
        /* Constructor and settings */

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

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