public void CreateICCProfile() { // of all the .icc profiles I have on my Mac then only one I found working is // for my old 15" sharp (secondary) display. Added it to the test suite // that should work on the iOS simulator - at least some as I'm not sure every Mac // has the file(s) so we're not trying (and fialing) to copy it into the bundle using (var icc = NSData.FromFile(Path.Combine(NSBundle.MainBundle.ResourcePath, "LL-171A-B-B797E457-16AB-C708-1E0F-32C19DBD47B5.icc"))) #if NET using (var cs = CGColorSpace.CreateIccProfile(icc)) { TestICC(cs); } using (var space = CGColorSpace.CreateIccProfile((NSData)null)) { Assert.IsNull(space, "null data"); } #else using (var cs = CGColorSpace.CreateICCProfile(icc)) { TestICC(cs); } using (var space = CGColorSpace.CreateICCProfile((NSData)null)) { Assert.IsNull(space, "null data"); } #endif }