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