34 instantiations of AmbientProperties
System.Windows.Forms.Tests (34)
System\Windows\Forms\AmbientPropertiesTests.cs (5)
15AmbientProperties property = new(); 26AmbientProperties property = new() 41AmbientProperties property = new() 56AmbientProperties property = new() 71AmbientProperties 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()); 10722AmbientProperties properties = new() 10738AmbientProperties sameProperties = new() 10754AmbientProperties differentProperties = new() 10896AmbientProperties properties = new() 10912AmbientProperties sameProperties = new() 10928AmbientProperties 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)
563private AmbientProperties? AmbientPropertiesService 567if (Properties.TryGetValueOrNull(s_ambientPropertiesServiceProperty, out AmbientProperties? ambientProperties)) 572ambientProperties = Site is not null ? Site.GetService<AmbientProperties>() : GetService<AmbientProperties>(); 798AmbientProperties? ambient = AmbientPropertiesService; 2019AmbientProperties? ambient = AmbientPropertiesService; 2932AmbientProperties? oldAmbients = AmbientPropertiesService; 2933AmbientProperties? newAmbients = null; 2937newAmbients = 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)
15AmbientProperties property = new(); 26AmbientProperties property = new() 41AmbientProperties property = new() 56AmbientProperties property = new() 71AmbientProperties 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))) 10722AmbientProperties properties = new() 10734.Setup(s => s.GetService(typeof(AmbientProperties))) 10738AmbientProperties sameProperties = new() 10750.Setup(s => s.GetService(typeof(AmbientProperties))) 10754AmbientProperties differentProperties = new() 10766.Setup(s => s.GetService(typeof(AmbientProperties))) 10775.Setup(s => s.GetService(typeof(AmbientProperties))) 10815mockSite1.Verify(s => s.GetService(typeof(AmbientProperties)), Times.Once()); 10816mockSite2.Verify(s => s.GetService(typeof(AmbientProperties)), Times.Never()); 10817mockSite3.Verify(s => s.GetService(typeof(AmbientProperties)), Times.Never()); 10818mockSite4.Verify(s => s.GetService(typeof(AmbientProperties)), Times.Never()); 10831mockSite1.Verify(s => s.GetService(typeof(AmbientProperties)), Times.Exactly(2)); 10832mockSite2.Verify(s => s.GetService(typeof(AmbientProperties)), Times.Never()); 10833mockSite3.Verify(s => s.GetService(typeof(AmbientProperties)), Times.Never()); 10834mockSite4.Verify(s => s.GetService(typeof(AmbientProperties)), Times.Never()); 10847mockSite1.Verify(s => s.GetService(typeof(AmbientProperties)), Times.Exactly(2)); 10848mockSite2.Verify(s => s.GetService(typeof(AmbientProperties)), Times.Exactly(1)); 10849mockSite3.Verify(s => s.GetService(typeof(AmbientProperties)), Times.Never()); 10850mockSite4.Verify(s => s.GetService(typeof(AmbientProperties)), Times.Never()); 10863mockSite1.Verify(s => s.GetService(typeof(AmbientProperties)), Times.Exactly(2)); 10864mockSite2.Verify(s => s.GetService(typeof(AmbientProperties)), Times.Exactly(1)); 10865mockSite3.Verify(s => s.GetService(typeof(AmbientProperties)), Times.Exactly(1)); 10866mockSite4.Verify(s => s.GetService(typeof(AmbientProperties)), Times.Never()); 10879mockSite1.Verify(s => s.GetService(typeof(AmbientProperties)), Times.Exactly(2)); 10880mockSite2.Verify(s => s.GetService(typeof(AmbientProperties)), Times.Exactly(1)); 10881mockSite3.Verify(s => s.GetService(typeof(AmbientProperties)), Times.Exactly(1)); 10882mockSite4.Verify(s => s.GetService(typeof(AmbientProperties)), Times.Exactly(1)); 10896AmbientProperties properties = new() 10908.Setup(s => s.GetService(typeof(AmbientProperties))) 10912AmbientProperties sameProperties = new() 10924.Setup(s => s.GetService(typeof(AmbientProperties))) 10928AmbientProperties differentProperties = new() 10940.Setup(s => s.GetService(typeof(AmbientProperties))) 10949.Setup(s => s.GetService(typeof(AmbientProperties))) 10997mockSite1.Verify(s => s.GetService(typeof(AmbientProperties)), Times.Once()); 10998mockSite2.Verify(s => s.GetService(typeof(AmbientProperties)), Times.Never()); 10999mockSite3.Verify(s => s.GetService(typeof(AmbientProperties)), Times.Never()); 11000mockSite4.Verify(s => s.GetService(typeof(AmbientProperties)), Times.Never()); 11013mockSite1.Verify(s => s.GetService(typeof(AmbientProperties)), Times.Exactly(2)); 11014mockSite2.Verify(s => s.GetService(typeof(AmbientProperties)), Times.Never()); 11015mockSite3.Verify(s => s.GetService(typeof(AmbientProperties)), Times.Never()); 11016mockSite4.Verify(s => s.GetService(typeof(AmbientProperties)), Times.Never()); 11029mockSite1.Verify(s => s.GetService(typeof(AmbientProperties)), Times.Exactly(2)); 11030mockSite2.Verify(s => s.GetService(typeof(AmbientProperties)), Times.Exactly(1)); 11031mockSite3.Verify(s => s.GetService(typeof(AmbientProperties)), Times.Never()); 11032mockSite4.Verify(s => s.GetService(typeof(AmbientProperties)), Times.Never()); 11045mockSite1.Verify(s => s.GetService(typeof(AmbientProperties)), Times.Exactly(2)); 11046mockSite2.Verify(s => s.GetService(typeof(AmbientProperties)), Times.Exactly(1)); 11047mockSite3.Verify(s => s.GetService(typeof(AmbientProperties)), Times.Exactly(1)); 11048mockSite4.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)))