public void ImportMonoWithoutFillTest()
        {
            // given: import data
            var data = new byte[] { 0, 10, 128, 255 };
            var size = new Size2D(2, 2);

            // when: importing
            using (var img = RawFileImporter.ImportAsMono(data, size, 42))
            {
                // then: image correctly imported
                Assert.That(img.Planes.Count, Is.EqualTo(1));
                Assert.That(img.Size, Is.EqualTo(size));
                CollectionAssert.AreEqual(data, img.GetPixels());
            }
        }
 public void ImportMonoWithoutDataTest()
 {
     // when: trying to import without data
     // then: ArgumentNullException
     Assert.That(() => RawFileImporter.ImportAsMono(null, new Size2D(2, 2), 42), Throws.ArgumentNullException);
 }