public void Test_Execute_ImageProfile()
        {
            MagickScript script = new MagickScript(Files.Scripts.ImageProfile);

            using (MagickImage image = new MagickImage(Files.MagickNETIconPNG))
            {
                ColorProfile colorProfile = image.GetColorProfile();
                Assert.IsNull(colorProfile);

                script.Execute(image);

                colorProfile = image.GetColorProfile();

                Assert.IsNotNull(colorProfile);
                Assert.AreEqual(colorProfile.ToByteArray().Length, ColorProfile.SRGB.ToByteArray().Length);
            }
        }
 private static void TestProfile(ColorProfile profile, string name)
 {
     Assert.IsNotNull(profile);
     Assert.AreEqual(name, profile.Name);
     Assert.AreEqual(3144, profile.ToByteArray().Length);
 }