|
|
|
@ -23,7 +23,7 @@ namespace SixLabors.Memory.Tests |
|
|
|
[InlineData(-1)] |
|
|
|
public void Allocate_IncorrectAmount_ThrowsCorrect_ArgumentOutOfRangeException(int length) |
|
|
|
{ |
|
|
|
var ex = Assert.Throws<ArgumentOutOfRangeException>(() => this.MemoryAllocator.Allocate<BigStruct>( length)); |
|
|
|
var ex = Assert.Throws<ArgumentOutOfRangeException>(() => this.MemoryAllocator.Allocate<BigStruct>(length)); |
|
|
|
Assert.Equal("length", ex.ParamName); |
|
|
|
} |
|
|
|
|
|
|
|
|