public void OrderedDitherFactoryCreatesCorrect8x8Matrix() { DenseMatrix<uint> actual = OrderedDitherFactory.CreateDitherMatrix(8); for (int y = 0; y < actual.Rows; y++) { for (int x = 0; x < actual.Columns; x++) { Assert.Equal(Expected8x8Matrix[y, x], actual[y, x]); } } }
public void OrderedDitherFactoryCreatesCorrect8x8Matrix() { Fast2DArray <uint> actual = OrderedDitherFactory.CreateDitherMatrix(8); for (int y = 0; y < actual.Height; y++) { for (int x = 0; x < actual.Width; x++) { Assert.Equal(Expected8x8Matrix[y, x], actual[y, x]); } } }