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