10 references to Cursor
System.Windows.Forms.Tests (10)
System\Windows\Forms\CursorConverterTests.cs (3)
108Assert.Throws<NotSupportedException>(() => converter.ConvertTo(new Cursor(Cursors.AppStarting.Handle), typeof(InstanceDescriptor))); 150Assert.Throws<InvalidOperationException>(() => converter.ConvertTo(new Cursor(Cursors.AppStarting.Handle), typeof(byte[]))); 240string converted = (string)converter.ConvertTo(new Cursor(Cursors.Default.Handle), typeof(string));
System\Windows\Forms\CursorTests.cs (7)
35using Cursor cursor = new(sourceCursor.Handle); 55Assert.Throws<ArgumentException>("handle", () => new Cursor(IntPtr.Zero)); 248Cursor value = new(Cursors.AppStarting.Handle); 334using Cursor cursor = new(sourceCursor.Handle); 452Cursor cursor = new(Cursors.AppStarting.Handle); 454yield return new object[] { cursor, new Cursor(Cursors.AppStarting.Handle), true }; 455yield return new object[] { cursor, new Cursor(Cursors.Arrow.Handle), false };