Esempio n. 1
0
        public void TestCase3()
        {
            var input = "pwwkew";

            LongestSubstringWithoutRepeatingCharacters.LengthOfLongestSubstring(input).Should().Be(3);
        }
Esempio n. 2
0
 public void LongestSubstringWithoutRepeatingCharactersTest()
 {
     Assert.Throws <ArgumentNullException>(() => LongestSubstringWithoutRepeatingCharacters.LengthOfLongestSubstring(null));
 }
Esempio n. 3
0
        public void TestCase2()
        {
            var input = "bbbbbbb";

            LongestSubstringWithoutRepeatingCharacters.LengthOfLongestSubstring(input).Should().Be(1);
        }
Esempio n. 4
0
 public int LongestSubstringWithoutRepeatingCharactersTest(string s)
 {
     return(LongestSubstringWithoutRepeatingCharacters.LengthOfLongestSubstring(s));
 }