public void ToUInt32_ForMaximumValue_ReturnsExpectedValue() { var input = GetBytes(0xff, 0xff, 0xff, 0xff); const uint expected = 0xffffffff; var actual = NumericConverter.ToUInt32(input); Assert.That(actual, Is.EqualTo(expected), actual.ToString("x")); }
public void ToUInt32_ReturnsExpectedValue() { var input = GetBytes(0x11, 0x22, 0x33, 0x44); const uint expected = 0x11223344; var actual = NumericConverter.ToUInt32(input); Assert.That(actual, Is.EqualTo(expected), actual.ToString("x")); }