예제 #1
0
 public void FindIndex_ArgumentOutOfRangeException_Test()
 {
     Assert.Throws <ArgumentOutOfRangeException>(() => ArrayExt.FindIndex(new double[5] {
         25.65467, 65.6546587, 42.654654, 45.654654, 7.65498
     }, -0.0001));
     Assert.Throws <ArgumentOutOfRangeException>(() => ArrayExt.FindIndex(new double[5] {
         25.65467, 65.6546587, 42.654654, 45.654654, 7.65498
     }, 2));
 }
예제 #2
0
 public void FindIndex_ArgumentException_Test()
 {
     Assert.Throws <ArgumentException>(() => ArrayExt.FindIndex(new double[0], 0.0001));
 }
예제 #3
0
 public void FindIndex_ArgumentNullException_Test()
 {
     Assert.Throws <ArgumentNullException>(() => ArrayExt.FindIndex(null, 0.0001));
 }
예제 #4
0
 public int?FindIndex_Test(double[] array, double accuracy) => ArrayExt.FindIndex(array, accuracy);