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