34 instantiations of AmbientProperties
System.Windows.Forms.Tests (34)
System\Windows\Forms\AmbientPropertiesTests.cs (5)
15
AmbientProperties property =
new
();
26
AmbientProperties property =
new
()
41
AmbientProperties property =
new
()
56
AmbientProperties property =
new
()
71
AmbientProperties property =
new
()
System\Windows\Forms\ControlTests.Methods.cs (3)
2526
.Returns(new
AmbientProperties
());
2573
.Returns(new
AmbientProperties
());
2641
.Returns(new
AmbientProperties
());
System\Windows\Forms\ControlTests.Properties.cs (8)
10641
.Returns(new
AmbientProperties
());
10701
.Returns(new
AmbientProperties
());
10722
AmbientProperties properties =
new
()
10738
AmbientProperties sameProperties =
new
()
10754
AmbientProperties differentProperties =
new
()
10896
AmbientProperties properties =
new
()
10912
AmbientProperties sameProperties =
new
()
10928
AmbientProperties differentProperties =
new
()
System\Windows\Forms\DataGridViewElementTests.cs (1)
278
.Returns(new
AmbientProperties
());
System\Windows\Forms\MdiClientTests.cs (4)
352
.Returns(new
AmbientProperties
());
417
.Returns(new
AmbientProperties
());
844
.Returns(new
AmbientProperties
());
1006
.Returns(new
AmbientProperties
());
System\Windows\Forms\PictureBoxTests.cs (4)
821
.Returns(new
AmbientProperties
());
855
.Returns(new
AmbientProperties
());
2036
.Returns(new
AmbientProperties
());
2070
.Returns(new
AmbientProperties
());
System\Windows\Forms\PropertyGridTests.cs (6)
2731
.Returns(new
AmbientProperties
());
2831
.Returns(new
AmbientProperties
());
2855
.Returns(new
AmbientProperties
());
2917
.Returns(new
AmbientProperties
());
2951
.Returns(new
AmbientProperties
());
2985
.Returns(new
AmbientProperties
());
System\Windows\Forms\ToolStripTests.cs (1)
4248
.Returns(new
AmbientProperties
());
System\Windows\Forms\UserControlTests.cs (2)
273
.Returns(new
AmbientProperties
());
364
.Returns(new
AmbientProperties
());
233 references to AmbientProperties
System.Windows.Forms (9)
System\Windows\Forms\Control.cs (9)
563
private
AmbientProperties
? AmbientPropertiesService
567
if (Properties.TryGetValueOrNull(s_ambientPropertiesServiceProperty, out
AmbientProperties
? ambientProperties))
572
ambientProperties = Site is not null ? Site.GetService<
AmbientProperties
>() : GetService<
AmbientProperties
>();
798
AmbientProperties
? ambient = AmbientPropertiesService;
2019
AmbientProperties
? ambient = AmbientPropertiesService;
2932
AmbientProperties
? oldAmbients = AmbientPropertiesService;
2933
AmbientProperties
? newAmbients = null;
2937
newAmbients = value.GetService<
AmbientProperties
>();
System.Windows.Forms.Design.Tests (29)
Mocks\MockSite.cs (1)
31
.Setup(s => s.GetService(typeof(
AmbientProperties
)))
System\ComponentModel\Design\CollectionEditorTests.cs (15)
166
.Setup(c => c.GetService(typeof(
AmbientProperties
)))
224
.Setup(c => c.GetService(typeof(
AmbientProperties
)))
275
.Setup(c => c.GetService(typeof(
AmbientProperties
)))
328
.Setup(c => c.GetService(typeof(
AmbientProperties
)))
422
.Setup(c => c.GetService(typeof(
AmbientProperties
)))
475
.Setup(c => c.GetService(typeof(
AmbientProperties
)))
536
.Setup(c => c.GetService(typeof(
AmbientProperties
)))
577
.Setup(c => c.GetService(typeof(
AmbientProperties
)))
623
.Setup(c => c.GetService(typeof(
AmbientProperties
)))
670
.Setup(c => c.GetService(typeof(
AmbientProperties
)))
713
.Setup(c => c.GetService(typeof(
AmbientProperties
)))
740
.Setup(c => c.GetService(typeof(
AmbientProperties
)))
855
.Setup(c => c.GetService(typeof(
AmbientProperties
)))
966
.Setup(c => c.GetService(typeof(
AmbientProperties
)))
1004
.Setup(c => c.GetService(typeof(
AmbientProperties
)))
System\ComponentModel\Design\CollectionFormTests.cs (12)
123
.Setup(c => c.GetService(typeof(
AmbientProperties
)))
179
.Setup(c => c.GetService(typeof(
AmbientProperties
)))
238
.Setup(c => c.GetService(typeof(
AmbientProperties
)))
297
.Setup(c => c.GetService(typeof(
AmbientProperties
)))
356
.Setup(c => c.GetService(typeof(
AmbientProperties
)))
410
.Setup(c => c.GetService(typeof(
AmbientProperties
)))
516
.Setup(c => c.GetService(typeof(
AmbientProperties
)))
575
.Setup(c => c.GetService(typeof(
AmbientProperties
)))
627
.Setup(c => c.GetService(typeof(
AmbientProperties
)))
681
.Setup(c => c.GetService(typeof(
AmbientProperties
)))
737
.Setup(c => c.GetService(typeof(
AmbientProperties
)))
776
.Setup(c => c.GetService(typeof(
AmbientProperties
)))
TestControlDesigner.Mocks.cs (1)
63
.Setup(s => s.GetService(typeof(
AmbientProperties
)))
System.Windows.Forms.Tests (195)
System\Windows\Forms\AmbientPropertiesTests.cs (5)
15
AmbientProperties
property = new();
26
AmbientProperties
property = new()
41
AmbientProperties
property = new()
56
AmbientProperties
property = new()
71
AmbientProperties
property = new()
System\Windows\Forms\AxHostTests.cs (17)
256
.Setup(s => s.GetService(typeof(
AmbientProperties
)))
599
.Setup(s => s.GetService(typeof(
AmbientProperties
)))
632
.Setup(s => s.GetService(typeof(
AmbientProperties
)))
663
.Setup(s => s.GetService(typeof(
AmbientProperties
)))
694
.Setup(s => s.GetService(typeof(
AmbientProperties
)))
727
.Setup(s => s.GetService(typeof(
AmbientProperties
)))
758
.Setup(s => s.GetService(typeof(
AmbientProperties
)))
793
.Setup(s => s.GetService(typeof(
AmbientProperties
)))
841
.Setup(s => s.GetService(typeof(
AmbientProperties
)))
1775
.Setup(s => s.GetService(typeof(
AmbientProperties
)))
1828
.Setup(s => s.GetService(typeof(
AmbientProperties
)))
1885
.Setup(s => s.GetService(typeof(
AmbientProperties
)))
1940
.Setup(s => s.GetService(typeof(
AmbientProperties
)))
1997
.Setup(s => s.GetService(typeof(
AmbientProperties
)))
2059
.Setup(s => s.GetService(typeof(
AmbientProperties
)))
2124
.Setup(s => s.GetService(typeof(
AmbientProperties
)))
2198
.Setup(s => s.GetService(typeof(
AmbientProperties
)))
System\Windows\Forms\ButtonBaseTests.cs (19)
544
.Setup(s => s.GetService(typeof(
AmbientProperties
)))
590
.Setup(s => s.GetService(typeof(
AmbientProperties
)))
636
.Setup(s => s.GetService(typeof(
AmbientProperties
)))
853
.Setup(s => s.GetService(typeof(
AmbientProperties
)))
944
.Setup(s => s.GetService(typeof(
AmbientProperties
)))
1497
.Setup(s => s.GetService(typeof(
AmbientProperties
)))
1651
.Setup(s => s.GetService(typeof(
AmbientProperties
)))
2833
.Setup(s => s.GetService(typeof(
AmbientProperties
)))
2945
.Setup(s => s.GetService(typeof(
AmbientProperties
)))
4380
.Setup(s => s.GetService(typeof(
AmbientProperties
)))
4471
.Setup(s => s.GetService(typeof(
AmbientProperties
)))
5149
.Setup(s => s.GetService(typeof(
AmbientProperties
)))
5253
.Setup(s => s.GetService(typeof(
AmbientProperties
)))
6264
.Setup(s => s.GetService(typeof(
AmbientProperties
)))
6355
.Setup(s => s.GetService(typeof(
AmbientProperties
)))
6978
.Setup(s => s.GetService(typeof(
AmbientProperties
)))
7082
.Setup(s => s.GetService(typeof(
AmbientProperties
)))
7408
.Setup(s => s.GetService(typeof(
AmbientProperties
)))
7512
.Setup(s => s.GetService(typeof(
AmbientProperties
)))
System\Windows\Forms\ButtonTests.cs (2)
2408
.Setup(s => s.GetService(typeof(
AmbientProperties
)))
2497
.Setup(s => s.GetService(typeof(
AmbientProperties
)))
System\Windows\Forms\ControlTests.Methods.cs (3)
2525
.Setup(s => s.GetService(typeof(
AmbientProperties
)))
2572
.Setup(s => s.GetService(typeof(
AmbientProperties
)))
2640
.Setup(s => s.GetService(typeof(
AmbientProperties
)))
System\Windows\Forms\ControlTests.Properties.cs (58)
9295
.Setup(s => s.GetService(typeof(
AmbientProperties
)))
9363
.Setup(s => s.GetService(typeof(
AmbientProperties
)))
10541
.Setup(s => s.GetService(typeof(
AmbientProperties
)))
10600
.Setup(s => s.GetService(typeof(
AmbientProperties
)))
10622
.Setup(s => s.GetService(typeof(
AmbientProperties
)))
10631
.Setup(s => s.GetService(typeof(
AmbientProperties
)))
10640
.Setup(s => s.GetService(typeof(
AmbientProperties
)))
10700
.Setup(s => s.GetService(typeof(
AmbientProperties
)))
10722
AmbientProperties
properties = new()
10734
.Setup(s => s.GetService(typeof(
AmbientProperties
)))
10738
AmbientProperties
sameProperties = new()
10750
.Setup(s => s.GetService(typeof(
AmbientProperties
)))
10754
AmbientProperties
differentProperties = new()
10766
.Setup(s => s.GetService(typeof(
AmbientProperties
)))
10775
.Setup(s => s.GetService(typeof(
AmbientProperties
)))
10815
mockSite1.Verify(s => s.GetService(typeof(
AmbientProperties
)), Times.Once());
10816
mockSite2.Verify(s => s.GetService(typeof(
AmbientProperties
)), Times.Never());
10817
mockSite3.Verify(s => s.GetService(typeof(
AmbientProperties
)), Times.Never());
10818
mockSite4.Verify(s => s.GetService(typeof(
AmbientProperties
)), Times.Never());
10831
mockSite1.Verify(s => s.GetService(typeof(
AmbientProperties
)), Times.Exactly(2));
10832
mockSite2.Verify(s => s.GetService(typeof(
AmbientProperties
)), Times.Never());
10833
mockSite3.Verify(s => s.GetService(typeof(
AmbientProperties
)), Times.Never());
10834
mockSite4.Verify(s => s.GetService(typeof(
AmbientProperties
)), Times.Never());
10847
mockSite1.Verify(s => s.GetService(typeof(
AmbientProperties
)), Times.Exactly(2));
10848
mockSite2.Verify(s => s.GetService(typeof(
AmbientProperties
)), Times.Exactly(1));
10849
mockSite3.Verify(s => s.GetService(typeof(
AmbientProperties
)), Times.Never());
10850
mockSite4.Verify(s => s.GetService(typeof(
AmbientProperties
)), Times.Never());
10863
mockSite1.Verify(s => s.GetService(typeof(
AmbientProperties
)), Times.Exactly(2));
10864
mockSite2.Verify(s => s.GetService(typeof(
AmbientProperties
)), Times.Exactly(1));
10865
mockSite3.Verify(s => s.GetService(typeof(
AmbientProperties
)), Times.Exactly(1));
10866
mockSite4.Verify(s => s.GetService(typeof(
AmbientProperties
)), Times.Never());
10879
mockSite1.Verify(s => s.GetService(typeof(
AmbientProperties
)), Times.Exactly(2));
10880
mockSite2.Verify(s => s.GetService(typeof(
AmbientProperties
)), Times.Exactly(1));
10881
mockSite3.Verify(s => s.GetService(typeof(
AmbientProperties
)), Times.Exactly(1));
10882
mockSite4.Verify(s => s.GetService(typeof(
AmbientProperties
)), Times.Exactly(1));
10896
AmbientProperties
properties = new()
10908
.Setup(s => s.GetService(typeof(
AmbientProperties
)))
10912
AmbientProperties
sameProperties = new()
10924
.Setup(s => s.GetService(typeof(
AmbientProperties
)))
10928
AmbientProperties
differentProperties = new()
10940
.Setup(s => s.GetService(typeof(
AmbientProperties
)))
10949
.Setup(s => s.GetService(typeof(
AmbientProperties
)))
10997
mockSite1.Verify(s => s.GetService(typeof(
AmbientProperties
)), Times.Once());
10998
mockSite2.Verify(s => s.GetService(typeof(
AmbientProperties
)), Times.Never());
10999
mockSite3.Verify(s => s.GetService(typeof(
AmbientProperties
)), Times.Never());
11000
mockSite4.Verify(s => s.GetService(typeof(
AmbientProperties
)), Times.Never());
11013
mockSite1.Verify(s => s.GetService(typeof(
AmbientProperties
)), Times.Exactly(2));
11014
mockSite2.Verify(s => s.GetService(typeof(
AmbientProperties
)), Times.Never());
11015
mockSite3.Verify(s => s.GetService(typeof(
AmbientProperties
)), Times.Never());
11016
mockSite4.Verify(s => s.GetService(typeof(
AmbientProperties
)), Times.Never());
11029
mockSite1.Verify(s => s.GetService(typeof(
AmbientProperties
)), Times.Exactly(2));
11030
mockSite2.Verify(s => s.GetService(typeof(
AmbientProperties
)), Times.Exactly(1));
11031
mockSite3.Verify(s => s.GetService(typeof(
AmbientProperties
)), Times.Never());
11032
mockSite4.Verify(s => s.GetService(typeof(
AmbientProperties
)), Times.Never());
11045
mockSite1.Verify(s => s.GetService(typeof(
AmbientProperties
)), Times.Exactly(2));
11046
mockSite2.Verify(s => s.GetService(typeof(
AmbientProperties
)), Times.Exactly(1));
11047
mockSite3.Verify(s => s.GetService(typeof(
AmbientProperties
)), Times.Exactly(1));
11048
mockSite4.Verify(s => s.GetService(typeof(
AmbientProperties
)), Times.Never());
System\Windows\Forms\DataGridViewElementTests.cs (1)
277
.Setup(s => s.GetService(typeof(
AmbientProperties
)))
System\Windows\Forms\MdiClientTests.cs (4)
351
.Setup(s => s.GetService(typeof(
AmbientProperties
)))
416
.Setup(s => s.GetService(typeof(
AmbientProperties
)))
843
.Setup(s => s.GetService(typeof(
AmbientProperties
)))
1005
.Setup(s => s.GetService(typeof(
AmbientProperties
)))
System\Windows\Forms\PanelTests.cs (1)
1083
.Setup(s => s.GetService(typeof(
AmbientProperties
)))
System\Windows\Forms\PictureBoxTests.cs (4)
820
.Setup(s => s.GetService(typeof(
AmbientProperties
)))
854
.Setup(s => s.GetService(typeof(
AmbientProperties
)))
2035
.Setup(s => s.GetService(typeof(
AmbientProperties
)))
2069
.Setup(s => s.GetService(typeof(
AmbientProperties
)))
System\Windows\Forms\ProgressBarTests.cs (3)
142
.Setup(s => s.GetService(typeof(
AmbientProperties
)))
801
.Setup(s => s.GetService(typeof(
AmbientProperties
)))
862
.Setup(s => s.GetService(typeof(
AmbientProperties
)))
System\Windows\Forms\PropertyGridTests.cs (7)
2730
.Setup(s => s.GetService(typeof(
AmbientProperties
)))
2794
.Setup(s => s.GetService(typeof(
AmbientProperties
)))
2830
.Setup(s => s.GetService(typeof(
AmbientProperties
)))
2854
.Setup(s => s.GetService(typeof(
AmbientProperties
)))
2916
.Setup(s => s.GetService(typeof(
AmbientProperties
)))
2950
.Setup(s => s.GetService(typeof(
AmbientProperties
)))
2984
.Setup(s => s.GetService(typeof(
AmbientProperties
)))
System\Windows\Forms\TabControl.ControlCollectionTests.cs (6)
655
.Setup(s => s.GetService(typeof(
AmbientProperties
)))
679
.Setup(s => s.GetService(typeof(
AmbientProperties
)))
686
.Setup(s => s.GetService(typeof(
AmbientProperties
)))
712
.Setup(s => s.GetService(typeof(
AmbientProperties
)))
811
.Setup(s => s.GetService(typeof(
AmbientProperties
)))
1511
.Setup(s => s.GetService(typeof(
AmbientProperties
)))
System\Windows\Forms\TabControl.TabPageCollectionTests.cs (16)
652
.Setup(s => s.GetService(typeof(
AmbientProperties
)))
678
.Setup(s => s.GetService(typeof(
AmbientProperties
)))
685
.Setup(s => s.GetService(typeof(
AmbientProperties
)))
713
.Setup(s => s.GetService(typeof(
AmbientProperties
)))
817
.Setup(s => s.GetService(typeof(
AmbientProperties
)))
2607
.Setup(s => s.GetService(typeof(
AmbientProperties
)))
2631
.Setup(s => s.GetService(typeof(
AmbientProperties
)))
2638
.Setup(s => s.GetService(typeof(
AmbientProperties
)))
2664
.Setup(s => s.GetService(typeof(
AmbientProperties
)))
2843
.Setup(s => s.GetService(typeof(
AmbientProperties
)))
3394
.Setup(s => s.GetService(typeof(
AmbientProperties
)))
3482
.Setup(s => s.GetService(typeof(
AmbientProperties
)))
3598
.Setup(s => s.GetService(typeof(
AmbientProperties
)))
3793
.Setup(s => s.GetService(typeof(
AmbientProperties
)))
3879
.Setup(s => s.GetService(typeof(
AmbientProperties
)))
4631
.Setup(s => s.GetService(typeof(
AmbientProperties
)))
System\Windows\Forms\TabControlTests.cs (1)
200
.Setup(s => s.GetService(typeof(
AmbientProperties
)))
System\Windows\Forms\TabPageTests.cs (15)
686
.Setup(s => s.GetService(typeof(
AmbientProperties
)))
728
.Setup(s => s.GetService(typeof(
AmbientProperties
)))
771
.Setup(s => s.GetService(typeof(
AmbientProperties
)))
1155
.Setup(s => s.GetService(typeof(
AmbientProperties
)))
1307
.Setup(s => s.GetService(typeof(
AmbientProperties
)))
1427
.Setup(s => s.GetService(typeof(
AmbientProperties
)))
1544
.Setup(s => s.GetService(typeof(
AmbientProperties
)))
1685
.Setup(s => s.GetService(typeof(
AmbientProperties
)))
1799
.Setup(s => s.GetService(typeof(
AmbientProperties
)))
2826
.Setup(s => s.GetService(typeof(
AmbientProperties
)))
2940
.Setup(s => s.GetService(typeof(
AmbientProperties
)))
3059
.Setup(s => s.GetService(typeof(
AmbientProperties
)))
3198
.Setup(s => s.GetService(typeof(
AmbientProperties
)))
3316
.Setup(s => s.GetService(typeof(
AmbientProperties
)))
3428
.Setup(s => s.GetService(typeof(
AmbientProperties
)))
System\Windows\Forms\ToolStripControlHostTests.cs (18)
490
.Setup(s => s.GetService(typeof(
AmbientProperties
)))
1784
.Setup(s => s.GetService(typeof(
AmbientProperties
)))
1825
.Setup(s => s.GetService(typeof(
AmbientProperties
)))
1846
.Setup(s => s.GetService(typeof(
AmbientProperties
)))
1867
.Setup(s => s.GetService(typeof(
AmbientProperties
)))
1895
.Setup(s => s.GetService(typeof(
AmbientProperties
)))
1925
.Setup(s => s.GetService(typeof(
AmbientProperties
)))
1953
.Setup(s => s.GetService(typeof(
AmbientProperties
)))
1976
.Setup(s => s.GetService(typeof(
AmbientProperties
)))
1994
.Setup(s => s.GetService(typeof(
AmbientProperties
)))
2015
.Setup(s => s.GetService(typeof(
AmbientProperties
)))
2034
.Setup(s => s.GetService(typeof(
AmbientProperties
)))
2054
.Setup(s => s.GetService(typeof(
AmbientProperties
)))
2076
.Setup(s => s.GetService(typeof(
AmbientProperties
)))
2095
.Setup(s => s.GetService(typeof(
AmbientProperties
)))
2115
.Setup(s => s.GetService(typeof(
AmbientProperties
)))
2135
.Setup(s => s.GetService(typeof(
AmbientProperties
)))
2167
.Setup(s => s.GetService(typeof(
AmbientProperties
)))
System\Windows\Forms\ToolStripDropDownTests.cs (2)
1212
.Setup(s => s.GetService(typeof(
AmbientProperties
)))
1344
.Setup(s => s.GetService(typeof(
AmbientProperties
)))
System\Windows\Forms\ToolStripTests.cs (4)
1763
.Setup(s => s.GetService(typeof(
AmbientProperties
)))
1894
.Setup(s => s.GetService(typeof(
AmbientProperties
)))
2116
.Setup(s => s.GetService(typeof(
AmbientProperties
)))
4247
.Setup(s => s.GetService(typeof(
AmbientProperties
)))
System\Windows\Forms\TreeViewTests.cs (3)
527
.Setup(s => s.GetService(typeof(
AmbientProperties
)))
566
.Setup(s => s.GetService(typeof(
AmbientProperties
)))
6088
.Setup(s => s.GetService(typeof(
AmbientProperties
)))
System\Windows\Forms\UserControlTests.cs (2)
272
.Setup(s => s.GetService(typeof(
AmbientProperties
)))
363
.Setup(s => s.GetService(typeof(
AmbientProperties
)))
TextBoxBaseTests.cs (2)
1468
.Setup(s => s.GetService(typeof(
AmbientProperties
)))
1499
.Setup(s => s.GetService(typeof(
AmbientProperties
)))
WebBrowserBaseTests.cs (2)
253
.Setup(s => s.GetService(typeof(
AmbientProperties
)))
273
.Setup(s => s.GetService(typeof(
AmbientProperties
)))