public void TestGetLongestSubsequenceSequenceInMiddle() { List <int> numbers = new List <int>() { 1, 1, 1, 2, 3, -6, -6, -6, -6, 9, 9 }; List <int> resultList = ListMethods.GetLongestSubsequence(numbers); List <int> expectedResult = new List <int>() { -6, -6, -6, -6 }; for (int i = 0; i < resultList.Count; i++) { Assert.AreEqual(resultList[i], expectedResult[i]); } }
public void TestGetLongestSubsequenceEmpty() { List <int> numbers = new List <int>(); List <int> resultList = ListMethods.GetLongestSubsequence(numbers); }
public void TestGetLongestSubsequenceNull() { List <int> resultList = ListMethods.GetLongestSubsequence(null); }