示例#1
0
        public void ToDoubleFrom8Dot8Test()
        {
            // Arrange
            double expected = 1.0;
            ushort value    = 0x0100;

            // Act
            double actual = FixedPoint.ToDouble(value);

            // Assert
            Assert.AreEqual(expected, actual);
        }
示例#2
0
        public void ToDoubleFrom15Dot16Test()
        {
            // Arrange
            double expected = 1.0;
            int    value    = 0x0001_0000;

            // Act
            double actual = FixedPoint.ToDouble(value);

            // Assert
            Assert.AreEqual(expected, actual);
        }