7 references to SetOutputChannelColorProfile
System.Drawing.Common.Tests (7)
System\Drawing\Imaging\ImageAttributesTests.cs (7)
1076
imageAttr.
SetOutputChannelColorProfile
(Helpers.GetTestColorProfilePath("RSWOP.icm"), ColorAdjustType.Default));
1084
Assert.Throws<ArgumentNullException>(() => imageAttr.
SetOutputChannelColorProfile
(null, ColorAdjustType.Default));
1092
Assert.Throws<ArgumentException>(() => imageAttr.
SetOutputChannelColorProfile
(string.Empty, ColorAdjustType.Default));
1100
Assert.Throws<ExternalException>(() => imageAttr.
SetOutputChannelColorProfile
("invalidPath", ColorAdjustType.Default));
1109
Assert.Throws<PathTooLongException>(() => imageAttr.
SetOutputChannelColorProfile
(fileNameTooLong, ColorAdjustType.Default));
1117
AssertExtensions.Throws<ArgumentException>(null, () => imageAttr.
SetOutputChannelColorProfile
("path", type));
1143
imageAttr.
SetOutputChannelColorProfile
(Helpers.GetTestColorProfilePath("RSWOP.icm"), type);