@@ -84,33 +84,33 @@ public void TestHexAddrAsciiTruncated() {
8484
8585 [ TestMethod ]
8686 public void TestComplexHexRaw ( ) {
87- String str = AsnFormatter . BinaryToString ( _complexRawData . AsSpan ( ) ) ;
87+ String str = AsnFormatter . BinaryToString ( _complexRawData ) ;
8888 Assert . AreEqual ( COMPLEX_HEX_RAW , str . TrimEnd ( ) ) ;
89- str = AsnFormatter . BinaryToString ( _complexRawData . AsSpan ( ) , forceUpperCase : true ) ;
89+ str = AsnFormatter . BinaryToString ( _complexRawData , forceUpperCase : true ) ;
9090 Assert . AreEqual ( COMPLEX_HEX_RAW . ToUpper ( ) , str . TrimEnd ( ) ) ;
9191 }
9292 [ TestMethod ]
9393 public void TestComplexHex ( ) {
94- String str = AsnFormatter . BinaryToString ( _complexRawData . AsSpan ( ) , EncodingType . Hex ) ;
94+ String str = AsnFormatter . BinaryToString ( _complexRawData , EncodingType . Hex ) ;
9595 Assert . AreEqual ( COMPLEX_HEX , str . TrimEnd ( ) ) ;
96- str = AsnFormatter . BinaryToString ( _complexRawData . AsSpan ( ) , EncodingType . Hex , forceUpperCase : true ) ;
96+ str = AsnFormatter . BinaryToString ( _complexRawData , EncodingType . Hex , forceUpperCase : true ) ;
9797 Assert . AreEqual ( COMPLEX_HEX . ToUpper ( ) , str . TrimEnd ( ) ) ;
9898 }
9999 [ TestMethod ]
100100 public void TestComplexHexAddr ( ) {
101- String str = AsnFormatter . BinaryToString ( _complexRawData . AsSpan ( ) , EncodingType . HexAddress ) ;
101+ String str = AsnFormatter . BinaryToString ( _complexRawData , EncodingType . HexAddress ) ;
102102 Assert . AreEqual ( COMPLEX_HEX_ADDR , str . TrimEnd ( ) ) ;
103- str = AsnFormatter . BinaryToString ( _complexRawData . AsSpan ( ) , EncodingType . HexAddress , forceUpperCase : true ) ;
103+ str = AsnFormatter . BinaryToString ( _complexRawData , EncodingType . HexAddress , forceUpperCase : true ) ;
104104 Assert . AreEqual ( COMPLEX_HEX_ADDR . ToUpper ( ) , str . TrimEnd ( ) ) ;
105105 }
106106 [ TestMethod ]
107107 public void TestComplexHexAscii ( ) {
108- String str = AsnFormatter . BinaryToString ( _complexRawData . AsSpan ( ) , EncodingType . HexAscii ) ;
108+ String str = AsnFormatter . BinaryToString ( _complexRawData , EncodingType . HexAscii ) ;
109109 Assert . AreEqual ( COMPLEX_HEX_ASCII , str . TrimEnd ( ) ) ;
110110 }
111111 [ TestMethod ]
112112 public void TestComplexHexAddrAscii ( ) {
113- String str = AsnFormatter . BinaryToString ( _complexRawData . AsSpan ( ) , EncodingType . HexAsciiAddress ) ;
113+ String str = AsnFormatter . BinaryToString ( _complexRawData , EncodingType . HexAsciiAddress ) ;
114114 Assert . AreEqual ( COMPLEX_HEX_ADDR_ASCII , str . TrimEnd ( ) ) ;
115115 }
116116}
0 commit comments