51 references to new
System.Windows.Forms.Tests (50)
System\Windows\Forms\AxHostTests.cs (2)
490
Cursor cursor1 =
new
(1);
491
Cursor cursor2 =
new
(1);
System\Windows\Forms\ControlTests.Handlers.cs (3)
1154
Cursor childCursor1 =
new
(1);
1155
Cursor childCursor2 =
new
(1);
4385
Cursor cursor =
new
(1);
System\Windows\Forms\ControlTests.Methods.cs (1)
6387
using Cursor cursor =
new
(1);
System\Windows\Forms\ControlTests.Properties.cs (20)
3715
using Cursor cursor =
new
(1);
3730
using Cursor cursor1 =
new
(1);
3731
using Cursor cursor2 =
new
(2);
3750
using Cursor cursor1 =
new
(1);
3751
using Cursor cursor2 =
new
(2);
3770
using Cursor cursor =
new
(1);
3782
using Cursor cursor1 =
new
(1);
3783
using Cursor cursor2 =
new
(2);
3801
public Cursor DefaultCursorResult { get; } =
new
(1);
3878
Cursor cursor1 =
new
(1);
3879
Cursor cursor2 =
new
(1);
3918
using Cursor cursor1 =
new
(1);
3929
using Cursor cursor2 =
new
(2);
3981
using Cursor cursor1 =
new
(1);
4000
using Cursor cursor2 =
new
(2);
4034
using Cursor childCursor1 =
new
(1);
4035
using Cursor childCursor2 =
new
(2);
4074
using Cursor cursor1 =
new
(3);
4093
using Cursor cursor2 =
new
(4);
10955
using Cursor controlCursor =
new
(3);
System\Windows\Forms\CursorConverterTests.cs (6)
87
Assert.Throws<FormatException>(() => converter.ConvertTo(new
Cursor
(2), typeof(string)));
108
Assert.Throws<NotSupportedException>(() => converter.ConvertTo(new
Cursor
(Cursors.AppStarting.Handle), typeof(InstanceDescriptor)));
115
Assert.Throws<NotSupportedException>(() => converter.ConvertTo(new
Cursor
(2), typeof(InstanceDescriptor)));
150
Assert.Throws<InvalidOperationException>(() => converter.ConvertTo(new
Cursor
(Cursors.AppStarting.Handle), typeof(byte[])));
157
Assert.Throws<InvalidOperationException>(() => converter.ConvertTo(new
Cursor
(2), typeof(byte[])));
240
string converted = (string)converter.ConvertTo(new
Cursor
(Cursors.Default.Handle), typeof(string));
System\Windows\Forms\CursorTests.cs (16)
35
using Cursor cursor =
new
(sourceCursor.Handle);
45
using Cursor cursor =
new
(-1000);
55
Assert.Throws<ArgumentException>("handle", () => new
Cursor
(IntPtr.Zero));
248
Cursor value =
new
(Cursors.AppStarting.Handle);
315
using Cursor cursor =
new
(2)
334
using Cursor cursor =
new
(sourceCursor.Handle);
357
Cursor cursor =
new
(2);
390
using Cursor cursor =
new
(-1000);
427
using Cursor cursor =
new
(-1000);
452
Cursor cursor =
new
(Cursors.AppStarting.Handle);
454
yield return new object[] { cursor, new
Cursor
(Cursors.AppStarting.Handle), true };
455
yield return new object[] { cursor, new
Cursor
(Cursors.Arrow.Handle), false };
474
Cursor cursor =
new
(2);
476
yield return new object[] { cursor, new
Cursor
(2), true };
477
yield return new object[] { cursor, new
Cursor
(1), false };
509
using Cursor cursor =
new
(2);
System\Windows\Forms\ToolStripTests.cs (2)
1362
using Cursor cursor1 =
new
(1);
1373
using Cursor cursor2 =
new
(2);
System.Windows.Forms.TestUtilities (1)
CommonTestHelperEx.cs (1)
104
new
(1)