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