27 references to ServiceContainer
System.Windows.Forms.Design.Tests (27)
System\ComponentModel\Design\DesignSurfaceTests.cs (27)
31
Assert.NotNull(surface.
ServiceContainer
);
70
Assert.NotNull(surface.
ServiceContainer
);
92
Assert.NotNull(surface.
ServiceContainer
);
114
Assert.NotNull(surface.
ServiceContainer
);
161
Assert.NotNull(surface.
ServiceContainer
);
204
ServiceContainer container = surface.
ServiceContainer
;
206
Assert.Same(container, surface.
ServiceContainer
);
213
ServiceContainer container = surface.
ServiceContainer
;
223
ServiceContainer container = surface.
ServiceContainer
;
231
ServiceContainer container = surface.
ServiceContainer
;
240
ServiceContainer container = surface.
ServiceContainer
;
248
ServiceContainer container = surface.
ServiceContainer
;
256
ServiceContainer container = surface.
ServiceContainer
;
264
ServiceContainer container = surface.
ServiceContainer
;
281
ServiceContainer container = surface.
ServiceContainer
;
290
ServiceContainer container = surface.
ServiceContainer
;
304
ServiceContainer container = surface.
ServiceContainer
;
318
ServiceContainer container = surface.
ServiceContainer
;
327
Assert.Throws<ObjectDisposedException>(() => surface.
ServiceContainer
);
661
surface.
ServiceContainer
.RemoveService(typeof(IExtenderProviderService));
706
surface.
ServiceContainer
.RemoveService(typeof(IExtenderProviderService));
1177
ServiceContainer container = surface.
ServiceContainer
;
1268
ServiceContainer container = surface.
ServiceContainer
;
1279
ServiceContainer container = surface.
ServiceContainer
;
1531
Assert.Same(surface.
ServiceContainer
, surface.GetService(surface.
ServiceContainer
.GetType()));
1540
Assert.Same(surface.
ServiceContainer
, surface.GetService(serviceType));