public void GetServiceType_CustomSite_ReturnsExpected() { var component = new SubComponent(); Assert.Null(component.GetServiceInternal(typeof(int))); var site = new MockSite { ServiceType = typeof(bool) }; component.Site = site; Assert.Equal(typeof(bool), component.GetServiceInternal(typeof(int))); }