@@ -9,7 +9,7 @@ public class ByteEncodingUtilsTests
9
9
public void BigEndianToUint64_ByteArray_ShouldConvertCorrectly ( )
10
10
{
11
11
// Arrange
12
- byte [ ] input = { 0x01 , 0x23 , 0x45 , 0x67 , 0x89 , 0xAB , 0xCD , 0xEF } ;
12
+ byte [ ] input = [ 0x01 , 0x23 , 0x45 , 0x67 , 0x89 , 0xAB , 0xCD , 0xEF ] ;
13
13
var expected = 0x0123456789ABCDEFUL ;
14
14
15
15
// Act
@@ -23,7 +23,7 @@ public void BigEndianToUint64_ByteArray_ShouldConvertCorrectly()
23
23
public void BigEndianToUint64_ByteArray_WithOffset_ShouldConvertCorrectly ( )
24
24
{
25
25
// Arrange
26
- byte [ ] input = { 0x00 , 0x00 , 0x01 , 0x23 , 0x45 , 0x67 , 0x89 , 0xAB , 0xCD , 0xEF } ;
26
+ byte [ ] input = [ 0x00 , 0x00 , 0x01 , 0x23 , 0x45 , 0x67 , 0x89 , 0xAB , 0xCD , 0xEF ] ;
27
27
var expected = 0x0123456789ABCDEFUL ;
28
28
29
29
// Act
@@ -53,7 +53,7 @@ public void UInt64ToBigEndian_ShouldWriteCorrectly()
53
53
// Arrange
54
54
var value = 0x0123456789ABCDEFUL ;
55
55
Span < byte > output = stackalloc byte [ 8 ] ;
56
- byte [ ] expected = { 0x01 , 0x23 , 0x45 , 0x67 , 0x89 , 0xAB , 0xCD , 0xEF } ;
56
+ byte [ ] expected = [ 0x01 , 0x23 , 0x45 , 0x67 , 0x89 , 0xAB , 0xCD , 0xEF ] ;
57
57
58
58
// Act
59
59
ByteEncodingUtils . UInt64ToBigEndian ( value , output ) ;
@@ -66,7 +66,7 @@ public void UInt64ToBigEndian_ShouldWriteCorrectly()
66
66
public void BigEndianToUint64_InvalidOffset_ShouldThrowException ( )
67
67
{
68
68
// Arrange
69
- byte [ ] input = { 0x01 , 0x23 } ;
69
+ byte [ ] input = [ 0x01 , 0x23 ] ;
70
70
71
71
// Act
72
72
Action act = ( ) => ByteEncodingUtils . BigEndianToUint64 ( input , 1 ) ;
0 commit comments