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)
2495
.Returns(new
AmbientProperties
());
2542
.Returns(new
AmbientProperties
());
2610
.Returns(new
AmbientProperties
());
System\Windows\Forms\ControlTests.Properties.cs (8)
10643
.Returns(new
AmbientProperties
());
10703
.Returns(new
AmbientProperties
());
10724
AmbientProperties properties =
new
()
10740
AmbientProperties sameProperties =
new
()
10756
AmbientProperties differentProperties =
new
()
10898
AmbientProperties properties =
new
()
10914
AmbientProperties sameProperties =
new
()
10930
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)
562
private
AmbientProperties
? AmbientPropertiesService
566
if (Properties.TryGetValueOrNull(s_ambientPropertiesServiceProperty, out
AmbientProperties
? ambientProperties))
571
ambientProperties = Site is not null ? Site.GetService<
AmbientProperties
>() : GetService<
AmbientProperties
>();
797
AmbientProperties
? ambient = AmbientPropertiesService;
2018
AmbientProperties
? ambient = AmbientPropertiesService;
2931
AmbientProperties
? oldAmbients = AmbientPropertiesService;
2932
AmbientProperties
? newAmbients = null;
2936
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)
2494
.Setup(s => s.GetService(typeof(
AmbientProperties
)))
2541
.Setup(s => s.GetService(typeof(
AmbientProperties
)))
2609
.Setup(s => s.GetService(typeof(
AmbientProperties
)))
System\Windows\Forms\ControlTests.Properties.cs (58)
9297
.Setup(s => s.GetService(typeof(
AmbientProperties
)))
9365
.Setup(s => s.GetService(typeof(
AmbientProperties
)))
10543
.Setup(s => s.GetService(typeof(
AmbientProperties
)))
10602
.Setup(s => s.GetService(typeof(
AmbientProperties
)))
10624
.Setup(s => s.GetService(typeof(
AmbientProperties
)))
10633
.Setup(s => s.GetService(typeof(
AmbientProperties
)))
10642
.Setup(s => s.GetService(typeof(
AmbientProperties
)))
10702
.Setup(s => s.GetService(typeof(
AmbientProperties
)))
10724
AmbientProperties
properties = new()
10736
.Setup(s => s.GetService(typeof(
AmbientProperties
)))
10740
AmbientProperties
sameProperties = new()
10752
.Setup(s => s.GetService(typeof(
AmbientProperties
)))
10756
AmbientProperties
differentProperties = new()
10768
.Setup(s => s.GetService(typeof(
AmbientProperties
)))
10777
.Setup(s => s.GetService(typeof(
AmbientProperties
)))
10817
mockSite1.Verify(s => s.GetService(typeof(
AmbientProperties
)), Times.Once());
10818
mockSite2.Verify(s => s.GetService(typeof(
AmbientProperties
)), Times.Never());
10819
mockSite3.Verify(s => s.GetService(typeof(
AmbientProperties
)), Times.Never());
10820
mockSite4.Verify(s => s.GetService(typeof(
AmbientProperties
)), Times.Never());
10833
mockSite1.Verify(s => s.GetService(typeof(
AmbientProperties
)), Times.Exactly(2));
10834
mockSite2.Verify(s => s.GetService(typeof(
AmbientProperties
)), Times.Never());
10835
mockSite3.Verify(s => s.GetService(typeof(
AmbientProperties
)), Times.Never());
10836
mockSite4.Verify(s => s.GetService(typeof(
AmbientProperties
)), Times.Never());
10849
mockSite1.Verify(s => s.GetService(typeof(
AmbientProperties
)), Times.Exactly(2));
10850
mockSite2.Verify(s => s.GetService(typeof(
AmbientProperties
)), Times.Exactly(1));
10851
mockSite3.Verify(s => s.GetService(typeof(
AmbientProperties
)), Times.Never());
10852
mockSite4.Verify(s => s.GetService(typeof(
AmbientProperties
)), Times.Never());
10865
mockSite1.Verify(s => s.GetService(typeof(
AmbientProperties
)), Times.Exactly(2));
10866
mockSite2.Verify(s => s.GetService(typeof(
AmbientProperties
)), Times.Exactly(1));
10867
mockSite3.Verify(s => s.GetService(typeof(
AmbientProperties
)), Times.Exactly(1));
10868
mockSite4.Verify(s => s.GetService(typeof(
AmbientProperties
)), Times.Never());
10881
mockSite1.Verify(s => s.GetService(typeof(
AmbientProperties
)), Times.Exactly(2));
10882
mockSite2.Verify(s => s.GetService(typeof(
AmbientProperties
)), Times.Exactly(1));
10883
mockSite3.Verify(s => s.GetService(typeof(
AmbientProperties
)), Times.Exactly(1));
10884
mockSite4.Verify(s => s.GetService(typeof(
AmbientProperties
)), Times.Exactly(1));
10898
AmbientProperties
properties = new()
10910
.Setup(s => s.GetService(typeof(
AmbientProperties
)))
10914
AmbientProperties
sameProperties = new()
10926
.Setup(s => s.GetService(typeof(
AmbientProperties
)))
10930
AmbientProperties
differentProperties = new()
10942
.Setup(s => s.GetService(typeof(
AmbientProperties
)))
10951
.Setup(s => s.GetService(typeof(
AmbientProperties
)))
10999
mockSite1.Verify(s => s.GetService(typeof(
AmbientProperties
)), Times.Once());
11000
mockSite2.Verify(s => s.GetService(typeof(
AmbientProperties
)), Times.Never());
11001
mockSite3.Verify(s => s.GetService(typeof(
AmbientProperties
)), Times.Never());
11002
mockSite4.Verify(s => s.GetService(typeof(
AmbientProperties
)), Times.Never());
11015
mockSite1.Verify(s => s.GetService(typeof(
AmbientProperties
)), Times.Exactly(2));
11016
mockSite2.Verify(s => s.GetService(typeof(
AmbientProperties
)), Times.Never());
11017
mockSite3.Verify(s => s.GetService(typeof(
AmbientProperties
)), Times.Never());
11018
mockSite4.Verify(s => s.GetService(typeof(
AmbientProperties
)), Times.Never());
11031
mockSite1.Verify(s => s.GetService(typeof(
AmbientProperties
)), Times.Exactly(2));
11032
mockSite2.Verify(s => s.GetService(typeof(
AmbientProperties
)), Times.Exactly(1));
11033
mockSite3.Verify(s => s.GetService(typeof(
AmbientProperties
)), Times.Never());
11034
mockSite4.Verify(s => s.GetService(typeof(
AmbientProperties
)), Times.Never());
11047
mockSite1.Verify(s => s.GetService(typeof(
AmbientProperties
)), Times.Exactly(2));
11048
mockSite2.Verify(s => s.GetService(typeof(
AmbientProperties
)), Times.Exactly(1));
11049
mockSite3.Verify(s => s.GetService(typeof(
AmbientProperties
)), Times.Exactly(1));
11050
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
)))