@@ -9,7 +9,7 @@ public class ByteEncodingUtilsTests
99 public void BigEndianToUint64_ByteArray_ShouldConvertCorrectly ( )
1010 {
1111 // Arrange
12- byte [ ] input = { 0x01 , 0x23 , 0x45 , 0x67 , 0x89 , 0xAB , 0xCD , 0xEF } ;
12+ byte [ ] input = [ 0x01 , 0x23 , 0x45 , 0x67 , 0x89 , 0xAB , 0xCD , 0xEF ] ;
1313 var expected = 0x0123456789ABCDEFUL ;
1414
1515 // Act
@@ -23,7 +23,7 @@ public void BigEndianToUint64_ByteArray_ShouldConvertCorrectly()
2323 public void BigEndianToUint64_ByteArray_WithOffset_ShouldConvertCorrectly ( )
2424 {
2525 // 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 ] ;
2727 var expected = 0x0123456789ABCDEFUL ;
2828
2929 // Act
@@ -53,7 +53,7 @@ public void UInt64ToBigEndian_ShouldWriteCorrectly()
5353 // Arrange
5454 var value = 0x0123456789ABCDEFUL ;
5555 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 ] ;
5757
5858 // Act
5959 ByteEncodingUtils . UInt64ToBigEndian ( value , output ) ;
@@ -66,7 +66,7 @@ public void UInt64ToBigEndian_ShouldWriteCorrectly()
6666 public void BigEndianToUint64_InvalidOffset_ShouldThrowException ( )
6767 {
6868 // Arrange
69- byte [ ] input = { 0x01 , 0x23 } ;
69+ byte [ ] input = [ 0x01 , 0x23 ] ;
7070
7171 // Act
7272 Action act = ( ) => ByteEncodingUtils . BigEndianToUint64 ( input , 1 ) ;
0 commit comments