Exemplo n.º 1
0
        public void GivenString_abrkaabcdefghijjxxx_Return10()
        {
            LongestSubstringWithoutRepeatingCharacters solution = new LongestSubstringWithoutRepeatingCharacters();

            Assert.That(solution.LenghOfLongestSubstring("abrkaabcdefghijjxxx"), Is.EqualTo(10));
        }
Exemplo n.º 2
0
        public void GiveStringWitoutRepeatingWord_Return4()
        {
            LongestSubstringWithoutRepeatingCharacters solution = new LongestSubstringWithoutRepeatingCharacters();

            Assert.That(solution.LenghOfLongestSubstring("abcd"), Is.EqualTo(4));
        }