Exemple #1
0
        public int RunLong()
        {
            var numbers = new List <int>();

            for (var i = 0; i < 100000; i++)
            {
                numbers.Add(1);
            }

            return(EquivalenceIndex.Find(numbers.ToArray()));
        }
Exemple #2
0
        public void Returns_Index_ForValidNumberSequence()
        {
            var index = _equivalenceIndex.Find(new int[] { 1, 2, 3, 4, 5, 7, 8, 10, 12 });

            Assert.AreEqual(6, index);
        }
Exemple #3
0
 public int RunEmpty()
 {
     int[] numbers = new int[0];
     return(EquivalenceIndex.Find(numbers));
 }
Exemple #4
0
 public int ShouldRun(int[] numbers)
 {
     return(EquivalenceIndex.Find(numbers));
 }