public void LongestSubstringTest2() { string s = "ababbc"; int k = 2; int expectResult = 5; int actualResult = new LongestSubstringClass().LongestSubstring(s, k); Assert.AreEqual(expectResult, actualResult); }
public void LongestSubstringTest1() { string s = "aaabb"; int k = 3; int expectResult = 3; int actualResult = new LongestSubstringClass().LongestSubstring(s, k); Assert.AreEqual(expectResult, actualResult); }