Co-Simulation/Sumo/sumo-1.7.0/unittest/src/utils/common/RGBColorTest.cpp
/* Test the method 'parseColor' with thrown EmptyData Exception*/
Test the method 'parseColor' with thrown EmptyData Exception
Test the method ' parseColor ' with thrown EmptyData Exception
TEST(RGBColor, test_parseColor_with_a_short_string) {
    ASSERT_THROW(RGBColor::parseColor(""), EmptyData) << "Expect an EmptyData exception.";
    ASSERT_THROW(RGBColor::parseColor("1,2"), EmptyData) << "Expect an EmptyData exception.";
    ASSERT_THROW(RGBColor::parseColor("test"), EmptyData) << "Expect an EmptyData exception.";
    ASSERT_THROW(RGBColor::parseColor("1,2,3,5,432test"), EmptyData) << "Expect an EmptyData exception.";
}
TEST ( RGBColor , test_parseColor_with_a_short_string ) { ASSERT_THROW ( RGBColor :: parseColor ( " " ) , EmptyData ) << " " ; ASSERT_THROW ( RGBColor :: parseColor ( " " ) , EmptyData ) << " " ; ASSERT_THROW ( RGBColor :: parseColor ( " " ) , EmptyData ) << " " ; ASSERT_THROW ( RGBColor :: parseColor ( " " ) , EmptyData ) << " " ; }
Test the method 'parseColor' with thrown EmptyData Exception
Test the method ' parseColor ' with thrown EmptyData Exception