@@ -339,7 +339,10 @@ public void TestWriteMisaligned()
339
339
// now the stream is misalligned, lets write some bytes
340
340
outStream . WriteByte ( 244 ) ;
341
341
outStream . WriteByte ( 123 ) ;
342
-
342
+ outStream . WriteInt16 ( - 5457 ) ;
343
+ outStream . WriteUInt64 ( 4773753249 ) ;
344
+ outStream . WriteUInt64Packed ( 5435285812313212 ) ;
345
+ outStream . WriteInt64Packed ( - 5435285812313212 ) ;
343
346
outStream . WriteBit ( true ) ;
344
347
outStream . WriteByte ( 1 ) ;
345
348
outStream . WriteByte ( 0 ) ;
@@ -352,12 +355,13 @@ public void TestWriteMisaligned()
352
355
Assert . That ( inStream . ReadBit ( ) , Is . False ) ;
353
356
Assert . That ( inStream . ReadByte ( ) , Is . EqualTo ( 244 ) ) ;
354
357
Assert . That ( inStream . ReadByte ( ) , Is . EqualTo ( 123 ) ) ;
358
+ Assert . That ( inStream . ReadInt16 ( ) , Is . EqualTo ( - 5457 ) ) ;
359
+ Assert . That ( inStream . ReadUInt64 ( ) , Is . EqualTo ( 4773753249 ) ) ;
360
+ Assert . That ( inStream . ReadUInt64Packed ( ) , Is . EqualTo ( 5435285812313212 ) ) ;
361
+ Assert . That ( inStream . ReadInt64Packed ( ) , Is . EqualTo ( - 5435285812313212 ) ) ;
355
362
Assert . That ( inStream . ReadBit ( ) , Is . True ) ;
356
363
Assert . That ( inStream . ReadByte ( ) , Is . EqualTo ( 1 ) ) ;
357
364
Assert . That ( inStream . ReadByte ( ) , Is . EqualTo ( 0 ) ) ;
358
-
359
-
360
-
361
365
}
362
366
}
363
367
}
0 commit comments