Example #1
0
        public void CalculateXdInclined_Success()
        {
            // Setup
            var expectedResult   = 17.9952144920095;
            var catenaryConstant = 183.972911;
            var Xc            = 11.5725554426295;
            var spanLength    = 35.97;
            var spanElevation = 1.256;

            // Execute
            var Xd = WeatherExtensions.CalculateXd(Xc, catenaryConstant, spanElevation, spanLength);

            // Assert
            Assert.Equal(expectedResult, Xd, SigFigs);
        }
Example #2
0
        public void CalculateXd_Success()
        {
            // Setup
            var expectedResult   = 25;
            var catenaryConstant = 1400.0;
            var Xc            = 25;
            var spanLength    = 50;
            var spanElevation = 0.0;

            // Execute
            var Xd = WeatherExtensions.CalculateXd(Xc, catenaryConstant, spanElevation, spanLength);

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