@@ -134,7 +134,7 @@ public void PeekLong()
134
134
{
135
135
// Arrange
136
136
var block = _pool . Lease ( ) ;
137
- var bytes = new byte [ ] { 0x00 , 0x01 , 0x02 , 0x03 , 0x04 , 0x05 , 0x06 , 0x07 } ;
137
+ var bytes = BitConverter . GetBytes ( 0x0102030405060708 ) ;
138
138
Buffer . BlockCopy ( bytes , 0 , block . Array , block . Start , bytes . Length ) ;
139
139
block . End += bytes . Length ;
140
140
var scan = block . GetIterator ( ) ;
@@ -144,7 +144,7 @@ public void PeekLong()
144
144
var result = scan . PeekLong ( ) ;
145
145
146
146
// Assert
147
- Assert . Equal ( 0x0706050403020100 , result ) ;
147
+ Assert . Equal ( 0x0102030405060708 , result ) ;
148
148
Assert . Equal ( originalIndex , scan . Index ) ;
149
149
}
150
150
@@ -169,7 +169,7 @@ public void PeekLongAtBlockBoundary(int blockBytes)
169
169
170
170
block . Next = nextBlock ;
171
171
172
- var bytes = new byte [ ] { 0x00 , 0x01 , 0x02 , 0x03 , 0x04 , 0x05 , 0x06 , 0x07 } ;
172
+ var bytes = BitConverter . GetBytes ( 0x0102030405060708 ) ;
173
173
Buffer . BlockCopy ( bytes , 0 , block . Array , block . Start , blockBytes ) ;
174
174
Buffer . BlockCopy ( bytes , blockBytes , nextBlock . Array , nextBlock . Start , nextBlockBytes ) ;
175
175
@@ -180,7 +180,7 @@ public void PeekLongAtBlockBoundary(int blockBytes)
180
180
var result = scan . PeekLong ( ) ;
181
181
182
182
// Assert
183
- Assert . Equal ( 0x0706050403020100 , result ) ;
183
+ Assert . Equal ( 0x0102030405060708 , result ) ;
184
184
Assert . Equal ( originalIndex , scan . Index ) ;
185
185
}
186
186
0 commit comments