71 references to new
System.Windows.Forms.Tests (71)
System\Windows\Forms\ScrollBarTests.cs (58)
2242
new
(ScrollEventType.SmallDecrement, 10, 9),
2243
new
(ScrollEventType.EndScroll, 9, 9),
2251
new
(ScrollEventType.SmallDecrement, 10, 9),
2252
new
(ScrollEventType.EndScroll, 9, 9),
2260
new
(ScrollEventType.SmallDecrement, 10, 9),
2261
new
(ScrollEventType.SmallDecrement, 9, 8),
2262
new
(ScrollEventType.EndScroll, 8, 8),
2270
new
(ScrollEventType.SmallDecrement, 1, 0),
2271
new
(ScrollEventType.EndScroll, 0, 0),
2279
new
(ScrollEventType.SmallDecrement, 1, 0),
2280
new
(ScrollEventType.SmallDecrement, 0, 0),
2281
new
(ScrollEventType.EndScroll, 0, 0),
2289
new
(ScrollEventType.SmallDecrement, 100, 99),
2290
new
(ScrollEventType.SmallDecrement, 99, 98),
2291
new
(ScrollEventType.EndScroll, 98, 98),
2300
new
(ScrollEventType.SmallDecrement, 10, 9),
2301
new
(ScrollEventType.EndScroll, 9, 9),
2309
new
(ScrollEventType.SmallDecrement, 10, 9),
2310
new
(ScrollEventType.EndScroll, 9, 9),
2318
new
(ScrollEventType.SmallDecrement, 10, 9),
2319
new
(ScrollEventType.SmallDecrement, 9, 8),
2320
new
(ScrollEventType.EndScroll, 8, 8),
2328
new
(ScrollEventType.SmallDecrement, 1, 0),
2329
new
(ScrollEventType.EndScroll, 0, 0),
2337
new
(ScrollEventType.SmallDecrement, 1, 0),
2338
new
(ScrollEventType.SmallDecrement, 0, 0),
2339
new
(ScrollEventType.EndScroll, 0, 0),
2347
new
(ScrollEventType.SmallDecrement, 100, 99),
2348
new
(ScrollEventType.SmallDecrement, 99, 98),
2349
new
(ScrollEventType.EndScroll, 98, 98),
2359
new
(ScrollEventType.SmallIncrement, 10, 11),
2360
new
(ScrollEventType.EndScroll, 11, 11),
2368
new
(ScrollEventType.SmallIncrement, 10, 11),
2369
new
(ScrollEventType.EndScroll, 11, 11),
2377
new
(ScrollEventType.SmallIncrement, 10, 11),
2378
new
(ScrollEventType.SmallIncrement, 11, 12),
2379
new
(ScrollEventType.EndScroll, 12, 12),
2387
new
(ScrollEventType.SmallIncrement, 90, 91),
2388
new
(ScrollEventType.EndScroll, 91, 91),
2396
new
(ScrollEventType.SmallIncrement, 99, 91),
2397
new
(ScrollEventType.EndScroll, 91, 91),
2405
new
(ScrollEventType.SmallIncrement, 99, 91),
2406
new
(ScrollEventType.SmallIncrement, 91, 91),
2407
new
(ScrollEventType.EndScroll, 91, 91),
2416
new
(ScrollEventType.SmallIncrement, 10, 11),
2417
new
(ScrollEventType.EndScroll, 11, 11),
2425
new
(ScrollEventType.SmallIncrement, 10, 11),
2426
new
(ScrollEventType.EndScroll, 11, 11),
2434
new
(ScrollEventType.SmallIncrement, 10, 11),
2435
new
(ScrollEventType.SmallIncrement, 11, 12),
2436
new
(ScrollEventType.EndScroll, 12, 12),
2444
new
(ScrollEventType.SmallIncrement, 90, 91),
2445
new
(ScrollEventType.EndScroll, 91, 91),
2453
new
(ScrollEventType.SmallIncrement, 99, 91),
2454
new
(ScrollEventType.EndScroll, 91, 91),
2462
new
(ScrollEventType.SmallIncrement, 99, 91),
2463
new
(ScrollEventType.SmallIncrement, 91, 91),
2464
new
(ScrollEventType.EndScroll, 91, 91),
System\Windows\Forms\ScrollEventArgsTests.cs (1)
30
ScrollEventArgs e =
new
(type, oldValue, newValue);
System\Windows\Forms\ToolStripTests.cs (12)
6677
yield return new object[] { new
ScrollEventArgs
(scrollEventType, 100, 200), new Point(x, 101), new Point(0, 100) };
6678
yield return new object[] { new
ScrollEventArgs
(scrollEventType, 200, 100), new Point(x, -99), new Point(0, -100) };
6679
yield return new object[] { new
ScrollEventArgs
(scrollEventType, 100, 100), new Point(x, 1), new Point(0, 0) };
6682
yield return new object[] { new
ScrollEventArgs
(ScrollEventType.ThumbTrack, 100, 200), new Point(x, 1), new Point(0, 0) };
6683
yield return new object[] { new
ScrollEventArgs
(ScrollEventType.ThumbTrack, 200, 100), new Point(x, 1), new Point(0, 0) };
6684
yield return new object[] { new
ScrollEventArgs
(ScrollEventType.ThumbTrack, 0, 0), new Point(x, 1), new Point(0, 0) };
6722
yield return new object[] { new
ScrollEventArgs
(scrollEventType, 100, 200), new Point(x, 101), new Point(0, 100), 1 };
6723
yield return new object[] { new
ScrollEventArgs
(scrollEventType, 200, 100), new Point(x, -99), new Point(0, -100), 1 };
6724
yield return new object[] { new
ScrollEventArgs
(scrollEventType, 100, 100), new Point(x, 1), new Point(0, 0), 0 };
6727
yield return new object[] { new
ScrollEventArgs
(ScrollEventType.ThumbTrack, 100, 200), new Point(x, 1), new Point(0, 0), 0 };
6728
yield return new object[] { new
ScrollEventArgs
(ScrollEventType.ThumbTrack, 200, 100), new Point(x, 1), new Point(0, 0), 0 };
6729
yield return new object[] { new
ScrollEventArgs
(ScrollEventType.ThumbTrack, 0, 0), new Point(x, 1), new Point(0, 0), 0 };