コード例 #1
0
        public void GivenString_abrkaabcdefghijjxxx_Return10()
        {
            LongestSubstringWithoutRepeatingCharacters solution = new LongestSubstringWithoutRepeatingCharacters();

            Assert.That(solution.LenghOfLongestSubstring("abrkaabcdefghijjxxx"), Is.EqualTo(10));
        }
コード例 #2
0
        public void GiveStringWitoutRepeatingWord_Return4()
        {
            LongestSubstringWithoutRepeatingCharacters solution = new LongestSubstringWithoutRepeatingCharacters();

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