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