Tudat/Astrodynamics/BasicAstrodynamics/UnitTests/unitTestConvertMeanAnomalyToEccentricAnomaly.cpp
//! Test 4: Test conversion for eccentricity above 1.0.
Test 4: Test conversion for eccentricity above 1.0.
Test 4 : Test conversion for eccentricity above 1 . 0 .
BOOST_AUTO_TEST_CASE( test_convertMeanAnomalyToEccentricAnomaly_TooHigh )
{
    const double testEccentricity = 2.0;
    const double testMeanAnomaly = 1.0472;
    BOOST_CHECK_THROW( convertMeanAnomalyToEccentricAnomaly( testEccentricity, testMeanAnomaly ),
                       std::runtime_error );
}
BOOST_AUTO_TEST_CASE ( test_convertMeanAnomalyToEccentricAnomaly_TooHigh ) { const double testEccentricity = 2.0 ; const double testMeanAnomaly = 1.0472 ; BOOST_CHECK_THROW ( convertMeanAnomalyToEccentricAnomaly ( testEccentricity , testMeanAnomaly ) , std :: runtime_error ) ; }
Test 4: Test conversion for eccentricity above 1.0.
Test 4 : Test conversion for eccentricity above 1 . 0 .
// Set test value for eccentricity. // Set test value for mean anomaly. // Check if a runtime error is thrown if the anomaly is converted for this eccentricity.