public void CurrentPixelType__receives_pixel_from_image_typed_as_water() { var bmp = new Bitmap("Testimages/testimage1.png"); try { var imageRead = new ImageReader(bmp); int i = 0; while (i++ < 50) imageRead.NextColumn(); var result = imageRead.CurrentPixelType(); imageRead.CurrentColumn.Should().BeGreaterThan(30); result.Should().Be(PixelType.Water); } finally { bmp.Dispose(); } }