示例#1
0
        public void shouldreturnvalidresultfoEdgeCase()
        {
            string S = "heeellooo";

            string[] words = new string[] { "axxxrrzzz" };

            var result = ExpressiveWordsSolution.ExpressiveWords(S, words);

            Assert.Equal(0, result);
        }
示例#2
0
        public void shouldreturnvalidresultfoBasicMethod()
        {
            string S = "heeellooo";

            string[] words = new string[] { "hello", "hi", "helo" };

            var result = ExpressiveWordsSolution.ExpressiveWords(S, words);

            Assert.Equal(1, result);
        }