public void RemovePropertyItem() { FreeImageBitmap fib = new FreeImageBitmap(iManager.GetBitmapPath(ImageType.Metadata, ImageColorType.Type_01_Dither)); Random rand = new Random(); int[] list = fib.PropertyIdList; int length = list.Length; Assert.Greater(list.Length, 0); int id = list[rand.Next(0, list.Length - 1)]; Assert.IsNotNull(fib.GetPropertyItem(id)); fib.RemovePropertyItem(id); list = fib.PropertyIdList; Assert.That((list.Length + 1) == length); fib.Dispose(); }