2 references to ObjectPoolServiceCollectionExtensions
Microsoft.Extensions.ObjectPool.DependencyInjection.Tests (2)
DependencyInjectionExtensionsTests.cs (2)
19
Assert.Throws<ArgumentNullException>(() =>
ObjectPoolServiceCollectionExtensions
.AddPooled<TestClass>(null!));
20
Assert.Throws<ArgumentNullException>(() =>
ObjectPoolServiceCollectionExtensions
.AddPooled<ITestClass, TestClass>(null!));