File tree Expand file tree Collapse file tree 1 file changed +3
-7
lines changed
tests/ImageSharp.Tests/Memory/Allocators Expand file tree Collapse file tree 1 file changed +3
-7
lines changed Original file line number Diff line number Diff line change 1111
1212namespace SixLabors . ImageSharp . Tests . Memory . Allocators
1313{
14+ [ Collection ( "RunSerial" ) ]
1415 public class ArrayPoolMemoryAllocatorTests
1516 {
1617 private const int MaxPooledBufferSizeInBytes = 2048 ;
@@ -56,19 +57,14 @@ public void WhenPassedOnly_MaxPooledBufferSizeInBytes_SmallerThresholdValueIsAut
5657
5758 [ Fact ]
5859 public void When_PoolSelectorThresholdInBytes_IsGreaterThan_MaxPooledBufferSizeInBytes_ExceptionIsThrown ( )
59- {
60- Assert . ThrowsAny < Exception > ( ( ) => new ArrayPoolMemoryAllocator ( 100 , 200 ) ) ;
61- }
60+ => Assert . ThrowsAny < Exception > ( ( ) => new ArrayPoolMemoryAllocator ( 100 , 200 ) ) ;
6261 }
6362
6463 [ Theory ]
6564 [ InlineData ( 32 ) ]
6665 [ InlineData ( 512 ) ]
6766 [ InlineData ( MaxPooledBufferSizeInBytes - 1 ) ]
68- public void SmallBuffersArePooled_OfByte ( int size )
69- {
70- Assert . True ( this . LocalFixture . CheckIsRentingPooledBuffer < byte > ( size ) ) ;
71- }
67+ public void SmallBuffersArePooled_OfByte ( int size ) => Assert . True ( this . LocalFixture . CheckIsRentingPooledBuffer < byte > ( size ) ) ;
7268
7369 [ Theory ]
7470 [ InlineData ( 128 * 1024 * 1024 ) ]
You can’t perform that action at this time.
0 commit comments