Base:
property
Site
System.ComponentModel.Component.Site
26 writes to Site
System.Windows.Forms.Tests (26)
System\Windows\Forms\ToolStripControlHostTests.cs (26)
498Site = mockSite.Object 1787item.Site = mockSite.Object; 1797item.Site = mockSite.Object; 1807item.Site = null; 1827item.Site = mockSite.Object; 1830item.Site = null; 1848item.Site = mockSite.Object; 1851item.Site = null; 1869item.Site = mockSite.Object; 1872item.Site = null; 1897item.Site = mockSite.Object; 1927item.Site = mockSite.Object; 1930item.Site = null; 1959item.Site = mockSite.Object; 1978item.Site = mockSite.Object; 1996item.Site = mockSite.Object; 1999item.Site = null; 2017item.Site = mockSite.Object; 2036item.Site = mockSite.Object; 2056item.Site = mockSite.Object; 2078item.Site = mockSite.Object; 2097item.Site = mockSite.Object; 2117item.Site = mockSite.Object; 2137item.Site = mockSite.Object; 2169item.Site = mockSite.Object; 2186Assert.Throws<ObjectDisposedException>(() => item.Site = mockSite.Object);
7 references to Site
System.Windows.Forms.Tests (7)
System\Windows\Forms\ToolStripControlHostTests.cs (7)
111Assert.Null(item.Site); 1788Assert.Same(mockSite.Object, item.Site); 1798Assert.Same(mockSite.Object, item.Site); 1808Assert.Null(item.Site); 1900Assert.Equal(expected, item.Site.Name); 1907Assert.Equal(expected, item.Site.Name); 2187Assert.Equal(mockSite.Object, item.Site);