Exemplo n.º 1
0
 private void FromHexadecimalInner(string input, params byte[] expected)
 {
     byte[] actual = HexadecimalConvert.FromHexadecimal(input);
     CollectionAssert.AreEqual(expected, actual);
 }
Exemplo n.º 2
0
        private void ToHexadecimalInner(string expected, params byte[] input)
        {
            string actual = HexadecimalConvert.ToHexadecimal(input);

            Assert.AreEqual(expected, actual);
        }
Exemplo n.º 3
0
 public void FromHexadecimal_NonHexUnicodeCharacters()
 {
     HexadecimalConvert.FromHexadecimal("29—77—9B");
 }
Exemplo n.º 4
0
 public void FromHexadecimal_NonHexLetterCharacters()
 {
     HexadecimalConvert.FromHexadecimal("29779B4G");
 }
Exemplo n.º 5
0
 public void FromHexadecimal_NonHexCharacters()
 {
     HexadecimalConvert.FromHexadecimal("29,77,9B");
 }
Exemplo n.º 6
0
 public void FromHexadecimal_OddCharacterCount()
 {
     HexadecimalConvert.FromHexadecimal("29779B1A4D91BB2FD084A");
 }