Пример #1
0
 public void Hexadecimal_String_To_Bytes_InvalidFormat([Values("0", "0X", "X0")] string hex)
 {
     Assert.Throws <FormatException>(() => ByteConvert.FromHex(hex));
 }
Пример #2
0
 public byte[] Hexadecimal_String_To_Bytes(string hex)
 {
     return(ByteConvert.FromHex(hex));
 }