Esempio n. 1
0
        public void GetNonRepeatingLongestSubstringShouldReturnzyzuWhenabcxyzuabcIsPassedInRequest()
        {
            var response = NonRepeatingLongestSubstring.GetNonRepeatingLongestSubstring("abcayzuabc");

            Assert.AreEqual("x", response);
        }
Esempio n. 2
0
        public void GetNonRepeatingLongestSubstringShouldReturnxWhenxIsPassedInRequest()
        {
            var response = NonRepeatingLongestSubstring.GetNonRepeatingLongestSubstring("x");

            Assert.AreEqual("x", response);
        }
Esempio n. 3
0
        public void GetNonRepeatingLongestSubstringShouldReturnwkeWhenpwwkewIsPassedInRequest()
        {
            var response = NonRepeatingLongestSubstring.GetNonRepeatingLongestSubstring("pwwkew");

            Assert.AreEqual("wke", response);
        }
Esempio n. 4
0
        public void GetNonRepeatingLongestSubstringShouldReturnabchelotmzxWhenabcxdxabcabchelotmzxIsPassedInRequest()
        {
            var response = NonRepeatingLongestSubstring.GetNonRepeatingLongestSubstring("abcxdxabcabchelotmzx");

            Assert.AreEqual("abchelotmzx", response);
        }
Esempio n. 5
0
        public void GetNonRepeatingLongestSubstringShouldReturnabcWhenabcabcbbIsPassedInRequest()
        {
            var response = NonRepeatingLongestSubstring.GetNonRepeatingLongestSubstring("abcabcbb");

            Assert.AreEqual("abc", response);
        }