Exemplo n.º 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));
 }
Exemplo n.º 2
0
 public void FindIndex_ArgumentException_Test()
 {
     Assert.Throws <ArgumentException>(() => ArrayExt.FindIndex(new double[0], 0.0001));
 }
Exemplo n.º 3
0
 public void FindIndex_ArgumentNullException_Test()
 {
     Assert.Throws <ArgumentNullException>(() => ArrayExt.FindIndex(null, 0.0001));
 }
Exemplo n.º 4
0
 public int?FindIndex_Test(double[] array, double accuracy) => ArrayExt.FindIndex(array, accuracy);