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