Beispiel #1
0
 public void Test1_TestMethod2()
 {
     var test = new Test1.Solution();
     int[] A = new int[100000];
     for (int i = 0; i < A.Length; i++)
         A[i] = 100000;
     Assert.AreEqual(test.solution(100000, A), -1);
 }
Beispiel #2
0
 public void Test1_TestMethod1()
 {
     var test = new Test1.Solution();
     int[] A = new int[] { 5, 5, 1, 7, 2, 3, 5 };
     Assert.AreEqual(test.solution(5,A), 4);
 }