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