Skip to content
This repository was archived by the owner on Dec 18, 2018. It is now read-only.

Commit c20e67d

Browse files
author
Cesar Blum Silveira
committed
Small change to unit tests.
1 parent 80fb858 commit c20e67d

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

test/Microsoft.AspNet.Server.KestrelTests/MemoryPoolIterator2Tests.cs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,7 @@ public void PeekLong()
134134
{
135135
// Arrange
136136
var block = _pool.Lease();
137-
var bytes = new byte[] { 0x00, 0x01, 0x02, 0x03, 0x04, 0x05, 0x06, 0x07 };
137+
var bytes = BitConverter.GetBytes(0x0102030405060708);
138138
Buffer.BlockCopy(bytes, 0, block.Array, block.Start, bytes.Length);
139139
block.End += bytes.Length;
140140
var scan = block.GetIterator();
@@ -144,7 +144,7 @@ public void PeekLong()
144144
var result = scan.PeekLong();
145145

146146
// Assert
147-
Assert.Equal(0x0706050403020100, result);
147+
Assert.Equal(0x0102030405060708, result);
148148
Assert.Equal(originalIndex, scan.Index);
149149
}
150150

@@ -169,7 +169,7 @@ public void PeekLongAtBlockBoundary(int blockBytes)
169169

170170
block.Next = nextBlock;
171171

172-
var bytes = new byte[] { 0x00, 0x01, 0x02, 0x03, 0x04, 0x05, 0x06, 0x07 };
172+
var bytes = BitConverter.GetBytes(0x0102030405060708);
173173
Buffer.BlockCopy(bytes, 0, block.Array, block.Start, blockBytes);
174174
Buffer.BlockCopy(bytes, blockBytes, nextBlock.Array, nextBlock.Start, nextBlockBytes);
175175

@@ -180,7 +180,7 @@ public void PeekLongAtBlockBoundary(int blockBytes)
180180
var result = scan.PeekLong();
181181

182182
// Assert
183-
Assert.Equal(0x0706050403020100, result);
183+
Assert.Equal(0x0102030405060708, result);
184184
Assert.Equal(originalIndex, scan.Index);
185185
}
186186

0 commit comments

Comments
 (0)