Esempio n. 1
0
        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);
        }
Esempio n. 2
0
        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);
        }