8 references to ExtractAssociatedIcon
System.Drawing.Common.Tests (8)
System\Drawing\IconTests.cs (8)
313
Icon icon = Icon.
ExtractAssociatedIcon
(Helpers.GetTestBitmapPath("48x48_multiple_entries_4bit.ico"));
379
using Icon icon = Icon.
ExtractAssociatedIcon
(filePath);
390
Assert.Null(Icon.
ExtractAssociatedIcon
("http://microsoft.com"));
394
Assert.Throws<FileNotFoundException>(() => Icon.
ExtractAssociatedIcon
("http://microsoft.com"));
401
AssertExtensions.Throws<ArgumentNullException, ArgumentException>("filePath", null, () => Icon.
ExtractAssociatedIcon
(null));
407
AssertExtensions.Throws<ArgumentException>("filePath", null, () => Icon.
ExtractAssociatedIcon
(""));
413
Assert.Throws<FileNotFoundException>(() => Icon.
ExtractAssociatedIcon
("no-such-file.png"));
499
Icon icon = Icon.
ExtractAssociatedIcon
(Helpers.GetTestBitmapPath("48x48_multiple_entries_4bit.ico"));