34 instantiations of AmbientProperties
System.Windows.Forms.Tests (34)
System\Windows\Forms\AmbientPropertiesTests.cs (5)
17
AmbientProperties property =
new
();
28
AmbientProperties property =
new
()
43
AmbientProperties property =
new
()
58
AmbientProperties property =
new
()
73
AmbientProperties property =
new
()
System\Windows\Forms\ControlTests.Methods.cs (3)
2508
.Returns(new
AmbientProperties
());
2555
.Returns(new
AmbientProperties
());
2623
.Returns(new
AmbientProperties
());
System\Windows\Forms\ControlTests.Properties.cs (8)
10645
.Returns(new
AmbientProperties
());
10705
.Returns(new
AmbientProperties
());
10726
AmbientProperties properties =
new
()
10742
AmbientProperties sameProperties =
new
()
10758
AmbientProperties differentProperties =
new
()
10900
AmbientProperties properties =
new
()
10916
AmbientProperties sameProperties =
new
()
10932
AmbientProperties differentProperties =
new
()
System\Windows\Forms\DataGridViewElementTests.cs (1)
280
.Returns(new
AmbientProperties
());
System\Windows\Forms\MdiClientTests.cs (4)
354
.Returns(new
AmbientProperties
());
419
.Returns(new
AmbientProperties
());
846
.Returns(new
AmbientProperties
());
1008
.Returns(new
AmbientProperties
());
System\Windows\Forms\PictureBoxTests.cs (4)
823
.Returns(new
AmbientProperties
());
857
.Returns(new
AmbientProperties
());
2038
.Returns(new
AmbientProperties
());
2072
.Returns(new
AmbientProperties
());
System\Windows\Forms\PropertyGridTests.cs (6)
2733
.Returns(new
AmbientProperties
());
2833
.Returns(new
AmbientProperties
());
2857
.Returns(new
AmbientProperties
());
2919
.Returns(new
AmbientProperties
());
2953
.Returns(new
AmbientProperties
());
2987
.Returns(new
AmbientProperties
());
System\Windows\Forms\ToolStripTests.cs (1)
4250
.Returns(new
AmbientProperties
());
System\Windows\Forms\UserControlTests.cs (2)
275
.Returns(new
AmbientProperties
());
366
.Returns(new
AmbientProperties
());
232 references to AmbientProperties
System.Windows.Forms (9)
System\Windows\Forms\Control.cs (9)
658
private
AmbientProperties
? AmbientPropertiesService
662
if (Properties.TryGetValueOrNull(s_ambientPropertiesServiceProperty, out
AmbientProperties
? ambientProperties))
667
ambientProperties = Site is not null ? Site.GetService<
AmbientProperties
>() : GetService<
AmbientProperties
>();
893
AmbientProperties
? ambient = AmbientPropertiesService;
2107
AmbientProperties
? ambient = AmbientPropertiesService;
3020
AmbientProperties
? oldAmbients = AmbientPropertiesService;
3021
AmbientProperties
? newAmbients = null;
3025
newAmbients = value.GetService<
AmbientProperties
>();
System.Windows.Forms.Design.Tests (28)
Mocks\MockSite.cs (1)
33
.Setup(s => s.GetService(typeof(
AmbientProperties
)))
System\ComponentModel\Design\CollectionEditorTests.cs (14)
148
.Setup(c => c.GetService(typeof(
AmbientProperties
)))
206
.Setup(c => c.GetService(typeof(
AmbientProperties
)))
257
.Setup(c => c.GetService(typeof(
AmbientProperties
)))
310
.Setup(c => c.GetService(typeof(
AmbientProperties
)))
397
.Setup(c => c.GetService(typeof(
AmbientProperties
)))
450
.Setup(c => c.GetService(typeof(
AmbientProperties
)))
511
.Setup(c => c.GetService(typeof(
AmbientProperties
)))
552
.Setup(c => c.GetService(typeof(
AmbientProperties
)))
598
.Setup(c => c.GetService(typeof(
AmbientProperties
)))
645
.Setup(c => c.GetService(typeof(
AmbientProperties
)))
688
.Setup(c => c.GetService(typeof(
AmbientProperties
)))
799
.Setup(c => c.GetService(typeof(
AmbientProperties
)))
909
.Setup(c => c.GetService(typeof(
AmbientProperties
)))
947
.Setup(c => c.GetService(typeof(
AmbientProperties
)))
System\ComponentModel\Design\CollectionFormTests.cs (12)
125
.Setup(c => c.GetService(typeof(
AmbientProperties
)))
181
.Setup(c => c.GetService(typeof(
AmbientProperties
)))
240
.Setup(c => c.GetService(typeof(
AmbientProperties
)))
299
.Setup(c => c.GetService(typeof(
AmbientProperties
)))
358
.Setup(c => c.GetService(typeof(
AmbientProperties
)))
412
.Setup(c => c.GetService(typeof(
AmbientProperties
)))
518
.Setup(c => c.GetService(typeof(
AmbientProperties
)))
577
.Setup(c => c.GetService(typeof(
AmbientProperties
)))
629
.Setup(c => c.GetService(typeof(
AmbientProperties
)))
683
.Setup(c => c.GetService(typeof(
AmbientProperties
)))
739
.Setup(c => c.GetService(typeof(
AmbientProperties
)))
778
.Setup(c => c.GetService(typeof(
AmbientProperties
)))
TestControlDesigner.Mocks.cs (1)
61
.Setup(s => s.GetService(typeof(
AmbientProperties
)))
System.Windows.Forms.Tests (195)
System\Windows\Forms\AmbientPropertiesTests.cs (5)
17
AmbientProperties
property = new();
28
AmbientProperties
property = new()
43
AmbientProperties
property = new()
58
AmbientProperties
property = new()
73
AmbientProperties
property = new()
System\Windows\Forms\AxHostTests.cs (17)
258
.Setup(s => s.GetService(typeof(
AmbientProperties
)))
601
.Setup(s => s.GetService(typeof(
AmbientProperties
)))
634
.Setup(s => s.GetService(typeof(
AmbientProperties
)))
665
.Setup(s => s.GetService(typeof(
AmbientProperties
)))
696
.Setup(s => s.GetService(typeof(
AmbientProperties
)))
729
.Setup(s => s.GetService(typeof(
AmbientProperties
)))
760
.Setup(s => s.GetService(typeof(
AmbientProperties
)))
795
.Setup(s => s.GetService(typeof(
AmbientProperties
)))
843
.Setup(s => s.GetService(typeof(
AmbientProperties
)))
1777
.Setup(s => s.GetService(typeof(
AmbientProperties
)))
1830
.Setup(s => s.GetService(typeof(
AmbientProperties
)))
1887
.Setup(s => s.GetService(typeof(
AmbientProperties
)))
1942
.Setup(s => s.GetService(typeof(
AmbientProperties
)))
1999
.Setup(s => s.GetService(typeof(
AmbientProperties
)))
2061
.Setup(s => s.GetService(typeof(
AmbientProperties
)))
2126
.Setup(s => s.GetService(typeof(
AmbientProperties
)))
2200
.Setup(s => s.GetService(typeof(
AmbientProperties
)))
System\Windows\Forms\ButtonBaseTests.cs (19)
546
.Setup(s => s.GetService(typeof(
AmbientProperties
)))
592
.Setup(s => s.GetService(typeof(
AmbientProperties
)))
638
.Setup(s => s.GetService(typeof(
AmbientProperties
)))
855
.Setup(s => s.GetService(typeof(
AmbientProperties
)))
946
.Setup(s => s.GetService(typeof(
AmbientProperties
)))
1499
.Setup(s => s.GetService(typeof(
AmbientProperties
)))
1653
.Setup(s => s.GetService(typeof(
AmbientProperties
)))
2835
.Setup(s => s.GetService(typeof(
AmbientProperties
)))
2947
.Setup(s => s.GetService(typeof(
AmbientProperties
)))
4382
.Setup(s => s.GetService(typeof(
AmbientProperties
)))
4473
.Setup(s => s.GetService(typeof(
AmbientProperties
)))
5151
.Setup(s => s.GetService(typeof(
AmbientProperties
)))
5255
.Setup(s => s.GetService(typeof(
AmbientProperties
)))
6266
.Setup(s => s.GetService(typeof(
AmbientProperties
)))
6357
.Setup(s => s.GetService(typeof(
AmbientProperties
)))
6980
.Setup(s => s.GetService(typeof(
AmbientProperties
)))
7084
.Setup(s => s.GetService(typeof(
AmbientProperties
)))
7410
.Setup(s => s.GetService(typeof(
AmbientProperties
)))
7514
.Setup(s => s.GetService(typeof(
AmbientProperties
)))
System\Windows\Forms\ButtonTests.cs (2)
2410
.Setup(s => s.GetService(typeof(
AmbientProperties
)))
2499
.Setup(s => s.GetService(typeof(
AmbientProperties
)))
System\Windows\Forms\ControlTests.Methods.cs (3)
2507
.Setup(s => s.GetService(typeof(
AmbientProperties
)))
2554
.Setup(s => s.GetService(typeof(
AmbientProperties
)))
2622
.Setup(s => s.GetService(typeof(
AmbientProperties
)))
System\Windows\Forms\ControlTests.Properties.cs (58)
9299
.Setup(s => s.GetService(typeof(
AmbientProperties
)))
9367
.Setup(s => s.GetService(typeof(
AmbientProperties
)))
10545
.Setup(s => s.GetService(typeof(
AmbientProperties
)))
10604
.Setup(s => s.GetService(typeof(
AmbientProperties
)))
10626
.Setup(s => s.GetService(typeof(
AmbientProperties
)))
10635
.Setup(s => s.GetService(typeof(
AmbientProperties
)))
10644
.Setup(s => s.GetService(typeof(
AmbientProperties
)))
10704
.Setup(s => s.GetService(typeof(
AmbientProperties
)))
10726
AmbientProperties
properties = new()
10738
.Setup(s => s.GetService(typeof(
AmbientProperties
)))
10742
AmbientProperties
sameProperties = new()
10754
.Setup(s => s.GetService(typeof(
AmbientProperties
)))
10758
AmbientProperties
differentProperties = new()
10770
.Setup(s => s.GetService(typeof(
AmbientProperties
)))
10779
.Setup(s => s.GetService(typeof(
AmbientProperties
)))
10819
mockSite1.Verify(s => s.GetService(typeof(
AmbientProperties
)), Times.Once());
10820
mockSite2.Verify(s => s.GetService(typeof(
AmbientProperties
)), Times.Never());
10821
mockSite3.Verify(s => s.GetService(typeof(
AmbientProperties
)), Times.Never());
10822
mockSite4.Verify(s => s.GetService(typeof(
AmbientProperties
)), Times.Never());
10835
mockSite1.Verify(s => s.GetService(typeof(
AmbientProperties
)), Times.Exactly(2));
10836
mockSite2.Verify(s => s.GetService(typeof(
AmbientProperties
)), Times.Never());
10837
mockSite3.Verify(s => s.GetService(typeof(
AmbientProperties
)), Times.Never());
10838
mockSite4.Verify(s => s.GetService(typeof(
AmbientProperties
)), Times.Never());
10851
mockSite1.Verify(s => s.GetService(typeof(
AmbientProperties
)), Times.Exactly(2));
10852
mockSite2.Verify(s => s.GetService(typeof(
AmbientProperties
)), Times.Exactly(1));
10853
mockSite3.Verify(s => s.GetService(typeof(
AmbientProperties
)), Times.Never());
10854
mockSite4.Verify(s => s.GetService(typeof(
AmbientProperties
)), Times.Never());
10867
mockSite1.Verify(s => s.GetService(typeof(
AmbientProperties
)), Times.Exactly(2));
10868
mockSite2.Verify(s => s.GetService(typeof(
AmbientProperties
)), Times.Exactly(1));
10869
mockSite3.Verify(s => s.GetService(typeof(
AmbientProperties
)), Times.Exactly(1));
10870
mockSite4.Verify(s => s.GetService(typeof(
AmbientProperties
)), Times.Never());
10883
mockSite1.Verify(s => s.GetService(typeof(
AmbientProperties
)), Times.Exactly(2));
10884
mockSite2.Verify(s => s.GetService(typeof(
AmbientProperties
)), Times.Exactly(1));
10885
mockSite3.Verify(s => s.GetService(typeof(
AmbientProperties
)), Times.Exactly(1));
10886
mockSite4.Verify(s => s.GetService(typeof(
AmbientProperties
)), Times.Exactly(1));
10900
AmbientProperties
properties = new()
10912
.Setup(s => s.GetService(typeof(
AmbientProperties
)))
10916
AmbientProperties
sameProperties = new()
10928
.Setup(s => s.GetService(typeof(
AmbientProperties
)))
10932
AmbientProperties
differentProperties = new()
10944
.Setup(s => s.GetService(typeof(
AmbientProperties
)))
10953
.Setup(s => s.GetService(typeof(
AmbientProperties
)))
11001
mockSite1.Verify(s => s.GetService(typeof(
AmbientProperties
)), Times.Once());
11002
mockSite2.Verify(s => s.GetService(typeof(
AmbientProperties
)), Times.Never());
11003
mockSite3.Verify(s => s.GetService(typeof(
AmbientProperties
)), Times.Never());
11004
mockSite4.Verify(s => s.GetService(typeof(
AmbientProperties
)), Times.Never());
11017
mockSite1.Verify(s => s.GetService(typeof(
AmbientProperties
)), Times.Exactly(2));
11018
mockSite2.Verify(s => s.GetService(typeof(
AmbientProperties
)), Times.Never());
11019
mockSite3.Verify(s => s.GetService(typeof(
AmbientProperties
)), Times.Never());
11020
mockSite4.Verify(s => s.GetService(typeof(
AmbientProperties
)), Times.Never());
11033
mockSite1.Verify(s => s.GetService(typeof(
AmbientProperties
)), Times.Exactly(2));
11034
mockSite2.Verify(s => s.GetService(typeof(
AmbientProperties
)), Times.Exactly(1));
11035
mockSite3.Verify(s => s.GetService(typeof(
AmbientProperties
)), Times.Never());
11036
mockSite4.Verify(s => s.GetService(typeof(
AmbientProperties
)), Times.Never());
11049
mockSite1.Verify(s => s.GetService(typeof(
AmbientProperties
)), Times.Exactly(2));
11050
mockSite2.Verify(s => s.GetService(typeof(
AmbientProperties
)), Times.Exactly(1));
11051
mockSite3.Verify(s => s.GetService(typeof(
AmbientProperties
)), Times.Exactly(1));
11052
mockSite4.Verify(s => s.GetService(typeof(
AmbientProperties
)), Times.Never());
System\Windows\Forms\DataGridViewElementTests.cs (1)
279
.Setup(s => s.GetService(typeof(
AmbientProperties
)))
System\Windows\Forms\MdiClientTests.cs (4)
353
.Setup(s => s.GetService(typeof(
AmbientProperties
)))
418
.Setup(s => s.GetService(typeof(
AmbientProperties
)))
845
.Setup(s => s.GetService(typeof(
AmbientProperties
)))
1007
.Setup(s => s.GetService(typeof(
AmbientProperties
)))
System\Windows\Forms\PanelTests.cs (1)
1085
.Setup(s => s.GetService(typeof(
AmbientProperties
)))
System\Windows\Forms\PictureBoxTests.cs (4)
822
.Setup(s => s.GetService(typeof(
AmbientProperties
)))
856
.Setup(s => s.GetService(typeof(
AmbientProperties
)))
2037
.Setup(s => s.GetService(typeof(
AmbientProperties
)))
2071
.Setup(s => s.GetService(typeof(
AmbientProperties
)))
System\Windows\Forms\ProgressBarTests.cs (3)
144
.Setup(s => s.GetService(typeof(
AmbientProperties
)))
803
.Setup(s => s.GetService(typeof(
AmbientProperties
)))
864
.Setup(s => s.GetService(typeof(
AmbientProperties
)))
System\Windows\Forms\PropertyGridTests.cs (7)
2732
.Setup(s => s.GetService(typeof(
AmbientProperties
)))
2796
.Setup(s => s.GetService(typeof(
AmbientProperties
)))
2832
.Setup(s => s.GetService(typeof(
AmbientProperties
)))
2856
.Setup(s => s.GetService(typeof(
AmbientProperties
)))
2918
.Setup(s => s.GetService(typeof(
AmbientProperties
)))
2952
.Setup(s => s.GetService(typeof(
AmbientProperties
)))
2986
.Setup(s => s.GetService(typeof(
AmbientProperties
)))
System\Windows\Forms\TabControl.ControlCollectionTests.cs (6)
657
.Setup(s => s.GetService(typeof(
AmbientProperties
)))
681
.Setup(s => s.GetService(typeof(
AmbientProperties
)))
688
.Setup(s => s.GetService(typeof(
AmbientProperties
)))
714
.Setup(s => s.GetService(typeof(
AmbientProperties
)))
813
.Setup(s => s.GetService(typeof(
AmbientProperties
)))
1513
.Setup(s => s.GetService(typeof(
AmbientProperties
)))
System\Windows\Forms\TabControl.TabPageCollectionTests.cs (16)
654
.Setup(s => s.GetService(typeof(
AmbientProperties
)))
680
.Setup(s => s.GetService(typeof(
AmbientProperties
)))
687
.Setup(s => s.GetService(typeof(
AmbientProperties
)))
715
.Setup(s => s.GetService(typeof(
AmbientProperties
)))
819
.Setup(s => s.GetService(typeof(
AmbientProperties
)))
2609
.Setup(s => s.GetService(typeof(
AmbientProperties
)))
2633
.Setup(s => s.GetService(typeof(
AmbientProperties
)))
2640
.Setup(s => s.GetService(typeof(
AmbientProperties
)))
2666
.Setup(s => s.GetService(typeof(
AmbientProperties
)))
2845
.Setup(s => s.GetService(typeof(
AmbientProperties
)))
3396
.Setup(s => s.GetService(typeof(
AmbientProperties
)))
3484
.Setup(s => s.GetService(typeof(
AmbientProperties
)))
3600
.Setup(s => s.GetService(typeof(
AmbientProperties
)))
3795
.Setup(s => s.GetService(typeof(
AmbientProperties
)))
3881
.Setup(s => s.GetService(typeof(
AmbientProperties
)))
4633
.Setup(s => s.GetService(typeof(
AmbientProperties
)))
System\Windows\Forms\TabControlTests.cs (1)
202
.Setup(s => s.GetService(typeof(
AmbientProperties
)))
System\Windows\Forms\TabPageTests.cs (15)
688
.Setup(s => s.GetService(typeof(
AmbientProperties
)))
730
.Setup(s => s.GetService(typeof(
AmbientProperties
)))
773
.Setup(s => s.GetService(typeof(
AmbientProperties
)))
1157
.Setup(s => s.GetService(typeof(
AmbientProperties
)))
1309
.Setup(s => s.GetService(typeof(
AmbientProperties
)))
1429
.Setup(s => s.GetService(typeof(
AmbientProperties
)))
1546
.Setup(s => s.GetService(typeof(
AmbientProperties
)))
1687
.Setup(s => s.GetService(typeof(
AmbientProperties
)))
1801
.Setup(s => s.GetService(typeof(
AmbientProperties
)))
2828
.Setup(s => s.GetService(typeof(
AmbientProperties
)))
2942
.Setup(s => s.GetService(typeof(
AmbientProperties
)))
3061
.Setup(s => s.GetService(typeof(
AmbientProperties
)))
3200
.Setup(s => s.GetService(typeof(
AmbientProperties
)))
3318
.Setup(s => s.GetService(typeof(
AmbientProperties
)))
3430
.Setup(s => s.GetService(typeof(
AmbientProperties
)))
System\Windows\Forms\ToolStripControlHostTests.cs (18)
492
.Setup(s => s.GetService(typeof(
AmbientProperties
)))
1786
.Setup(s => s.GetService(typeof(
AmbientProperties
)))
1827
.Setup(s => s.GetService(typeof(
AmbientProperties
)))
1848
.Setup(s => s.GetService(typeof(
AmbientProperties
)))
1869
.Setup(s => s.GetService(typeof(
AmbientProperties
)))
1897
.Setup(s => s.GetService(typeof(
AmbientProperties
)))
1927
.Setup(s => s.GetService(typeof(
AmbientProperties
)))
1955
.Setup(s => s.GetService(typeof(
AmbientProperties
)))
1978
.Setup(s => s.GetService(typeof(
AmbientProperties
)))
1996
.Setup(s => s.GetService(typeof(
AmbientProperties
)))
2017
.Setup(s => s.GetService(typeof(
AmbientProperties
)))
2036
.Setup(s => s.GetService(typeof(
AmbientProperties
)))
2056
.Setup(s => s.GetService(typeof(
AmbientProperties
)))
2078
.Setup(s => s.GetService(typeof(
AmbientProperties
)))
2097
.Setup(s => s.GetService(typeof(
AmbientProperties
)))
2117
.Setup(s => s.GetService(typeof(
AmbientProperties
)))
2137
.Setup(s => s.GetService(typeof(
AmbientProperties
)))
2169
.Setup(s => s.GetService(typeof(
AmbientProperties
)))
System\Windows\Forms\ToolStripDropDownTests.cs (2)
1214
.Setup(s => s.GetService(typeof(
AmbientProperties
)))
1346
.Setup(s => s.GetService(typeof(
AmbientProperties
)))
System\Windows\Forms\ToolStripTests.cs (4)
1765
.Setup(s => s.GetService(typeof(
AmbientProperties
)))
1896
.Setup(s => s.GetService(typeof(
AmbientProperties
)))
2118
.Setup(s => s.GetService(typeof(
AmbientProperties
)))
4249
.Setup(s => s.GetService(typeof(
AmbientProperties
)))
System\Windows\Forms\TreeViewTests.cs (3)
529
.Setup(s => s.GetService(typeof(
AmbientProperties
)))
568
.Setup(s => s.GetService(typeof(
AmbientProperties
)))
6090
.Setup(s => s.GetService(typeof(
AmbientProperties
)))
System\Windows\Forms\UserControlTests.cs (2)
274
.Setup(s => s.GetService(typeof(
AmbientProperties
)))
365
.Setup(s => s.GetService(typeof(
AmbientProperties
)))
TextBoxBaseTests.cs (2)
1470
.Setup(s => s.GetService(typeof(
AmbientProperties
)))
1501
.Setup(s => s.GetService(typeof(
AmbientProperties
)))
WebBrowserBaseTests.cs (2)
255
.Setup(s => s.GetService(typeof(
AmbientProperties
)))
275
.Setup(s => s.GetService(typeof(
AmbientProperties
)))