public void CurrentPixelType__receives_pixel_from_image_typed_as_ground() { var bmp = new Bitmap("Testimages/testimage1.png"); try { var imageRead = new ImageReader(bmp); int i = 0; while (i++ < 42) imageRead.NextRow(); var result = imageRead.CurrentPixelType(); imageRead.CurrentRow.Should().BeGreaterThan(40); result.Should().Be(PixelType.Ground); } finally { bmp.Dispose(); } }