public void ThrowsNotSupportedExceptionWhenAtLeastOneTypeIsNotRegistered()
{
var serviceLocator = new ServiceLocator();
serviceLocator.RegisterType<object>();
serviceLocator.RegisterType<ITestInterface1, TestClass1>();
ExceptionTester.CallMethodAndExpectException<NotSupportedException>(() => serviceLocator.ResolveAllTypes(typeof(object), typeof(ITestInterface1), typeof(ITestInterface2)));
}