public void Test_Remove() { using (MagickImageCollection collection = new MagickImageCollection(Files.RoseSparkleGIF)) { MagickImage first = collection[0]; collection.Remove(first); Assert.AreEqual(2, collection.Count); Assert.AreEqual(-1, collection.IndexOf(first)); first = collection[0]; collection.RemoveAt(0); Assert.AreEqual(1, collection.Count); Assert.AreEqual(-1, collection.IndexOf(first)); } }