public void AsBitmap_ReturnsBitmapWithEveryPixelColorSet() { // Arrange var source = new double[, ] { { 0.25, 0.5, 1 }, { 0, 0.25, 0.5 }, { 0, 0, 0.25 } }; var expected = new int[, ] { { 64, 128, 255 }, { 0, 64, 128 }, { 0, 0, 64 } }; var map = new HeightMap(source); // Act var bitmap = map.AsBitmap(); // Assert AssertBitmap(bitmap, expected); }