public int RunLong() { var numbers = new List <int>(); for (var i = 0; i < 100000; i++) { numbers.Add(1); } return(EquivalenceIndex.Find(numbers.ToArray())); }
public void Returns_Index_ForValidNumberSequence() { var index = _equivalenceIndex.Find(new int[] { 1, 2, 3, 4, 5, 7, 8, 10, 12 }); Assert.AreEqual(6, index); }
public int RunEmpty() { int[] numbers = new int[0]; return(EquivalenceIndex.Find(numbers)); }
public int ShouldRun(int[] numbers) { return(EquivalenceIndex.Find(numbers)); }