示例#1
0
        public void DeleteAndAppendTest_Case6()
        {
            string mainWord    = "zzzzz";
            string createdWord = "zzzzzzz";
            int    k           = 4;

            var actual = new ExamplesOfHackerRank.Examples.DeleteAndAppend().IsItPossible(mainWord, createdWord, k);

            var expected = "Yes";

            Assert.AreEqual(expected, actual);
        }
示例#2
0
        public void DeleteAndAppendTest_Case4()
        {
            string mainWord    = "uoiauwrebgiwrhgiuawheirhwebvjforidkslweufgrhvjqasw";
            string createdWord = "vgftrheydkoslwezxcvdsqjkfhrydjwvogfheksockelsnbkeq";
            int    k           = 2;

            var actual = new ExamplesOfHackerRank.Examples.DeleteAndAppend().IsItPossible(mainWord, createdWord, k);

            var expected = "No";

            Assert.AreEqual(expected, actual);
        }