public void SAR_GetBoundingMeshIndeces_NonGridPointInput_ReturnsCorrectValue()
        {
            double[][] mesh = SAR_BuildExampleMesh();
            Postprocess.FieldSlice fieldSlice = new FieldSlice(mesh, null);

            int[,] refIndeces = new int[2,2] { {1, 2}, {1, 2} };
            int[,] dutIndeces = fieldSlice.GetBoundingMeshIndeces(mesh[0][1] + 0.1, mesh[1][1] + 0.1);

            Assert.Equal(refIndeces, dutIndeces);
        }
 public void SAR_GetValueAt_OutOfRangeInput_ThrowsException()
 {
     double refFieldValue = 2.0;
     double[][] mesh = SAR_BuildExampleMesh();
     double[,] field = SAR_BuildConstantField(mesh, refFieldValue);
     Postprocess.FieldSlice fieldSlice = new FieldSlice(mesh, field);
     Assert.Throws<ArgumentException>(
         delegate
         {
             fieldSlice.GetBoundingMeshIndeces(mesh[0][0] - 1.0, mesh[1][0] - 0.0);
         });
 }
 public void SAR_GetBoundingMeshIndeces_OutOfRangeInput_ThrowsException()
 {
     double[][] mesh = SAR_BuildExampleMesh();
     Postprocess.FieldSlice fieldSlice = new FieldSlice(mesh, null);
     Assert.Throws<ArgumentException>(
         delegate
         {
             fieldSlice.GetBoundingMeshIndeces(mesh[0][0] - 1.0, mesh[1][0] - 1.0);
         });
 }