public void ShouldReturnEnumeratorForCount() { using (IMagickImage image = new MagickImage(MagickColors.Red, 5, 10)) { using (IPixelCollection pixels = image.GetPixels()) { Assert.AreEqual(50, pixels.Count()); } } }
public void IEnumerable_ReturnsCorrectCount() { using (IMagickImage image = new MagickImage(MagickColors.Red, 5, 10)) { using (IPixelCollection pixels = image.GetPixels()) { Assert.AreEqual(50, pixels.Count()); } } }