8 references to ExtractIcon
System.Drawing.Common.Tests (7)
System\Drawing\IconTests.cs (7)
786Assert.Throws<ArgumentNullException>(() => { Icon.ExtractIcon(null!, 0, 16); });
793Assert.Throws<IOException>(() => { Icon.ExtractIcon(string.Empty, 0, 16); });
804Assert.Throws<ArgumentOutOfRangeException>(() => { Icon.ExtractIcon("Foo", 0, size); });
812Icon.ExtractIcon(Path.GetRandomFileName() + ".ico", 0, 16);
825Assert.Null(Icon.ExtractIcon(file.Path, 0, 16));
834while ((icon = Icon.ExtractIcon("regedit.exe", count, 16)) is not null)
850using Icon? icon = Icon.ExtractIcon("regedit.exe", -100, 256);
WinFormsControlsTest (1)