10 references to Cursor
System.Windows.Forms.Tests (10)
System\Windows\Forms\CursorConverterTests.cs (3)
106
Assert.Throws<NotSupportedException>(() => converter.ConvertTo(new
Cursor
(Cursors.AppStarting.Handle), typeof(InstanceDescriptor)));
148
Assert.Throws<InvalidOperationException>(() => converter.ConvertTo(new
Cursor
(Cursors.AppStarting.Handle), typeof(byte[])));
238
string converted = (string)converter.ConvertTo(new
Cursor
(Cursors.Default.Handle), typeof(string));
System\Windows\Forms\CursorTests.cs (7)
33
using Cursor cursor =
new
(sourceCursor.Handle);
53
Assert.Throws<ArgumentException>("handle", () => new
Cursor
(IntPtr.Zero));
246
Cursor value =
new
(Cursors.AppStarting.Handle);
332
using Cursor cursor =
new
(sourceCursor.Handle);
450
Cursor cursor =
new
(Cursors.AppStarting.Handle);
452
yield return new object[] { cursor, new
Cursor
(Cursors.AppStarting.Handle), true };
453
yield return new object[] { cursor, new
Cursor
(Cursors.Arrow.Handle), false };