public void AdjustKeyToInputTextTest1() { string inputText = "привет"; string key = "скорпион"; string expected = "скорпи"; char[] adjustedkey = MainModel.AdjustKeyToInputText(inputText.ToCharArray(), key.ToCharArray()); string actual = new string(adjustedkey); Assert.AreEqual(expected, actual); }
public void AdjustKeyToInputTextTest2() { string inputText = "Зима winter, 2020, холодно!"; string key = "скорпион"; string expected = "скорпионско"; char[] adjustedkey = MainModel.AdjustKeyToInputText(inputText.ToCharArray(), key.ToCharArray()); string actual = new string(adjustedkey); Assert.AreEqual(expected, actual); }