示例#1
0
        public void ToFixed15Dot16Test()
        {
            // Arrange
            int    expected = 0x7fff_ffff;
            double value    = 32767.0 + (65535.0 / 65536.0);

            // Act
            int actual = FixedPoint.ToFixed15Dot16(value);

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