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