public void ToUInt64_ForMaximumValue_ReturnsExpectedValue() { var input = GetBytes(0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff); const ulong expected = 0xffffffffffffffff; var actual = NumericConverter.ToUInt64(input); Assert.That(actual, Is.EqualTo(expected), actual.ToString("x")); }
public void ToUInt64_ReturnsExpectedValue() { var input = GetBytes(0x11, 0x22, 0x33, 0x44, 0x55, 0x66, 0x77, 0x88); const ulong expected = 0x1122334455667788; var actual = NumericConverter.ToUInt64(input); Assert.That(actual, Is.EqualTo(expected), actual.ToString("x")); }