コード例 #1
0
        public async Task CalculateRadiansAt315Degrees()
        {
            var result   = (float)System.Math.Round(TrigHelper.Radians(315), 6);
            var expected = (float)System.Math.Round(System.Math.PI * 1.75, 6);

            Assert.AreEqual(expected, result);
        }
コード例 #2
0
        public async Task CalculateRadiansAt720Degrees()
        {
            var result   = (float)System.Math.Round(TrigHelper.Radians(720), 6);
            var expected = 0;

            Assert.AreEqual(expected, result);
        }
コード例 #3
0
        public async Task CalculateRadiansAt0Degrees()
        {
            var result = TrigHelper.Radians(0);

            Assert.AreEqual(0, result);
        }