public void ToDoubleFrom8Dot8Test() { // Arrange double expected = 1.0; ushort value = 0x0100; // Act double actual = FixedPoint.ToDouble(value); // Assert Assert.AreEqual(expected, actual); }
public void ToDoubleFrom15Dot16Test() { // Arrange double expected = 1.0; int value = 0x0001_0000; // Act double actual = FixedPoint.ToDouble(value); // Assert Assert.AreEqual(expected, actual); }