public void Test() { Assert.Equal(4, TheLongestSubstring.GetLength("arabcacfr")); }
public void NullInput() { Assert.Throws <ArgumentNullException>(() => TheLongestSubstring.GetLength(null)); }
public void StringWithNoDuplicateChar() { Assert.Equal(26, TheLongestSubstring.GetLength("abcdefghijklmnopqrstuvwxyz")); }
public void StringWithSameChar() { Assert.Equal(1, TheLongestSubstring.GetLength("ddddddddddddddddddddddd")); }
public void EmptyString() { Assert.Equal(0, TheLongestSubstring.GetLength("")); }