14 references to Cursor
System.Windows.Forms.Tests (12)
System\Windows\Forms\AxHostTests.cs (1)
1583using Cursor original = new("bitmaps/cursor.cur");
System\Windows\Forms\CursorConverterTests.cs (1)
139using Cursor sourceCursor = new(fileName);
System\Windows\Forms\CursorTests.cs (10)
118using Cursor cursor = new(fileName); 128Assert.Throws<ArgumentNullException>("path", () => new Cursor((string)null)); 136Assert.Throws<ArgumentException>("path", () => new Cursor(fileName)); 142Assert.Throws<FileNotFoundException>(() => new Cursor("NoSuchFile")); 149Assert.Throws<ArgumentException>("fileName", () => new Cursor(fileName)); 327using Cursor sourceCursor = new(Path.Combine("bitmaps", "10x16_one_entry_32bit.ico")); 342Cursor cursor = new(Path.Combine("bitmaps", "10x16_one_entry_32bit.ico")); 378using Cursor cursor = new(Path.Combine("bitmaps", "10x16_one_entry_32bit.ico")); 415using Cursor cursor = new(Path.Combine("bitmaps", "10x16_one_entry_32bit.ico")); 500using Cursor cursor = new(Path.Combine("bitmaps", "10x16_one_entry_32bit.ico"));
System.Windows.Forms.UI.IntegrationTests (2)
DragDropTests.cs (2)
692_myNormalCursor = new Cursor("./Resources/3dwarro.cur"); 693_myNoDropCursor = new Cursor("./Resources/3dwno.cur");