- try
- {
- alignment.SetAlignmentType(type);
- tet_result(TET_FAIL);
- }
- catch (DaliException& exception)
- {
- if (exception.mCondition == "!horizontalSet")
- {
- tet_result(TET_PASS);
- }
- }
+ alignment.SetAlignmentType(type);
+ // center will prevail in conflict
+ DALI_TEST_CHECK( Alignment::HorizontalCenter & alignment.GetAlignmentType() );
+ DALI_TEST_CHECK( !(Alignment::HorizontalRight & alignment.GetAlignmentType()) );