Пример #1
0
 public void ConvertEmpty()
 {
     Assert.AreEqual(10, BerTlvLogic.HexadecimalToInteger(""));
 }
Пример #2
0
 public void ConvertNotAHex()
 {
     Assert.AreEqual(10, BerTlvLogic.HexadecimalToInteger("NotAHex"));
 }
Пример #3
0
 public void Convert10()
 {
     Assert.AreEqual(10, BerTlvLogic.HexadecimalToInteger("0x0a"));
 }
Пример #4
0
 public void Convert6()
 {
     Assert.AreEqual(6, BerTlvLogic.HexadecimalToInteger("0x06"));
 }
Пример #5
0
 public void Convert5()
 {
     Assert.AreEqual(5, BerTlvLogic.HexadecimalToInteger("0x05"));
 }
Пример #6
0
 public void Convert4()
 {
     Assert.AreEqual(4, BerTlvLogic.HexadecimalToInteger("0x04"));
 }
Пример #7
0
 public void Convert3Trimmed()
 {
     Assert.AreEqual(3, BerTlvLogic.HexadecimalToInteger(" 0x03 "));
 }