public void LaplacianKernelFactoryOutOfRangeThrows()
 {
     Assert.Throws <ArgumentOutOfRangeException>(() =>
     {
         LaplacianKernelFactory.CreateKernel(2);
     });
 }
        public void LaplacianKernelFactoryCreatesCorrect5x5Matrix()
        {
            DenseMatrix <float> actual = LaplacianKernelFactory.CreateKernel(5);

            for (int y = 0; y < actual.Rows; y++)
            {
                for (int x = 0; x < actual.Columns; x++)
                {
                    Assert.Equal(Expected5x5Matrix[y, x], actual[y, x], ApproximateComparer);
                }
            }
        }