Skip to content

Commit d2393cc

Browse files
committed
Formatting
1 parent e7f7a42 commit d2393cc

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

shared/Microsoft.Extensions.Buffers.MemoryPool.Sources/MemoryPoolThrowHelper.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,8 @@ private static string GenerateMessage(string message, params DiagnosticPoolBlock
7272
StringBuilder builder = new StringBuilder(message);
7373
foreach (var diagnosticPoolBlock in blocks)
7474
{
75+
builder.AppendLine();
76+
7577
if (diagnosticPoolBlock.Leaser != null)
7678
{
7779
builder.AppendLine("Block leased from:");

test/Microsoft.Extensions.Internal.Test/DiagnosticMemoryPoolTests.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ public void DoubleBlockDisposeThrows()
4040
var block = memoryPool.Rent();
4141
block.Dispose();
4242
var exception = Assert.Throws<InvalidOperationException>(() => block.Dispose());
43-
Assert.Equal("Object is being disposed twice", exception.Message);
43+
Assert.Equal("Block is being disposed twice", exception.Message);
4444

4545
ExpectDisposeAggregateException(memoryPool, exception);
4646
}

0 commit comments

Comments
 (0)