public void ServiceLocatorEnsureWithDescriptorsShouldAddDescriptors() { var serviceLocator = new ServiceLocator(); serviceLocator.BuildServiceProviderWithDescriptors( new ServiceDescriptor(typeof(Test), new Test())); Assert.IsNotNull(serviceLocator.ServiceProvider.GetService <Test>()); }