2 implementations of DisposedCalled
Microsoft.Extensions.ObjectPool.DependencyInjection.Tests (2)
TestResources\OtherTestClass.cs (1)
12int ITestClass.DisposedCalled => throw new NotSupportedException();
TestResources\TestClass.cs (1)
12public int DisposedCalled { get; private set; }
8 references to DisposedCalled
Microsoft.Extensions.ObjectPool.DependencyInjection.Tests (8)
DependencyInjectionExtensionsTests.cs (8)
169Assert.Equal(0, pooled.DisposedCalled); 248Assert.Equal(1, resolved1.DisposedCalled); // Pooled instances are disposed by the scope when it is disposed 296Assert.Equal(1, resolved1.DisposedCalled); 299Assert.Equal(1, resolved2.DisposedCalled); 302Assert.Equal(1, resolved3.DisposedCalled); 305Assert.Equal(1, resolved4.DisposedCalled); 354Assert.Equal(1, resolved1.DisposedCalled); 357Assert.Equal(1, resolved3.DisposedCalled);