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