Esempio n. 1
0
 public void WhenOS2IPIsPerformedWithAByteArrayForTheMaxSizeOfAnUnsignedInteger()
 {
     byte[] bytes = { 255, 255, 255, 255 }; // max in base 256
     _expectedInt = uint.MaxValue;
     _actualInt   = BigEndianUtils.ConvertOrdinalStringToIntegerPrimitive(bytes);
 }
Esempio n. 2
0
 public void WhenOS2IPIsPerformedWithAByteArrayThatIsNotPaddedWithZeros()
 {
     byte[] bytes = { 3, 176 }; // 944 in base 256
     _expectedInt = 944;
     _actualInt   = BigEndianUtils.ConvertOrdinalStringToIntegerPrimitive(bytes);
 }