public void StripWithMatchKanji(string input, bool isLeading, string matchKanji, string expectedResult) { var kanji = matchKanji.Split(',').Select(s => s[0]); Assert.Equal(expectedResult, OkuriganaHelpers.StripOkurigana(input, isLeading, kanji.ToArray())); }
public void StripLeading(string input, string expectedResult) { Assert.Equal(expectedResult, OkuriganaHelpers.StripOkurigana(input, isLeading: true)); }
public void DefaultParameters(string input, string expectedResult) { Assert.Equal(expectedResult, OkuriganaHelpers.StripOkurigana(input)); }
public void BasicInputs(string input, string expectedResult) { Assert.Equal(expectedResult, OkuriganaHelpers.StripOkurigana(input)); }
public void EmptyInput() { Assert.Equal(string.Empty, OkuriganaHelpers.StripOkurigana(string.Empty)); }
/// <summary> /// Strips Okurigana. /// </summary> /// <param name="input">Input.</param> /// <returns>Input without okurigana.</returns> public static string StripOkurigana(string input) => OkuriganaHelpers.StripOkurigana(input);