Esempio n. 1
0
        public void GetMagnitude_FromJoyStickXYCoordinates(int x, int y, double expected)
        {
            double actual = JoystickHelper.GetMagnitudeFromXYCoordinate(x, y);

            const double delta = 0.0001f;

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