public void GetThumbnail() { var layer = new Layer(_image, "test", ImageType.Rgb); _image.InsertLayer(layer, 0); var dimensions = new Dimensions(19, 23); var thumbnail = _image.GetThumbnail(dimensions, Transparency.KeepAlpha); int width = thumbnail.GetLength(1); int height = thumbnail.GetLength(0); Assert.AreEqual(dimensions, new Dimensions(width, height)); }