Esempio n. 1
0
        public void CalculateYcInclined_Success()
        {
            // Setup
            var expectedResult   = -0.364097639344555;
            var catenaryConstant = 183.972911;
            var Xc = 11.5725554426295;

            // Execute
            var Yc = WeatherExtensions.CalculateYc(catenaryConstant, Xc);

            // Assert
            Assert.Equal(expectedResult, Yc, SigFigs);
        }
Esempio n. 2
0
        public void CalculateYc_Success()
        {
            // Setup
            var expectedResult   = -0.223220217279341;
            var catenaryConstant = 1400.0;
            var Xc = 25;

            // Execute
            var Yc = WeatherExtensions.CalculateYc(catenaryConstant, Xc);

            // Assert
            Assert.Equal(expectedResult, Yc, SigFigs);
        }