Exemple #1
0
 public void IsLittleEndian()
 {
     Assert.AreEqual(true, HexOp.IsLittleEndian());
 }
Exemple #2
0
 public void GetHexForTwoFiftyFive()
 {
     Assert.AreEqual("FF-00-00-00", HexOp.GetHexForInt(255));
 }
Exemple #3
0
 public void GetHexForNegativeValue()
 {
     Assert.AreEqual("D1-FF-FF-FF", HexOp.GetHexForInt(-47));
 }
Exemple #4
0
 public void GetHexForLargeInt()
 {
     Assert.AreEqual("0D-0C-0B-0A", HexOp.GetHexForInt(168496141));
 }
Exemple #5
0
 public void GetHexForTen()
 {
     Assert.AreEqual("0A-00-00-00", HexOp.GetHexForInt(10));
 }
Exemple #6
0
 public void GetIntForTenHex()
 {
     Assert.AreEqual(10, HexOp.GetIntForHex(0x0000000A));
 }
Exemple #7
0
 public void GetIntForZeroHex()
 {
     Assert.AreEqual(0, HexOp.GetIntForHex(0x00000000));
 }
Exemple #8
0
 public void GetIntForLargeHex()
 {
     Assert.AreEqual(168496141, HexOp.GetIntForHex(0x0A0B0C0D));
 }