// Service type is GenericTypeDefintion, implementation type is ConstructedGenericType
yieldreturnnewobject[]{serviceType,typeof(ClassWithNoConstraints<string>),$"Open generic service type '{serviceType}' requires registering an open generic implementation type."};
// Service type is GenericTypeDefintion, implementation type has different generic type definition arity
yieldreturnnewobject[]{serviceType,typeof(FakeOpenGenericServiceWithTwoTypeArguments<,>),$"Arity of open generic service type '{serviceType}' does not equal arity of open generic implementation type '{typeof(FakeOpenGenericServiceWithTwoTypeArguments<,>)}'."};
}
}
[Fact]
publicvoidDoesNotDisposeSingletonInstances()
{
...
...
@@ -938,6 +963,12 @@ private abstract class AbstractFakeOpenGenericService<T> : IFakeOpenGenericServi