Skip to content

Commit

Permalink
Re #8023. Changing test to look for exceptions.
Browse files Browse the repository at this point in the history
  • Loading branch information
peterfpeterson committed Oct 10, 2013
1 parent 907bdd4 commit af06ec6
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions Code/Mantid/Framework/MDAlgorithms/test/ConvertToQ3DdETest.h
Original file line number Diff line number Diff line change
Expand Up @@ -86,8 +86,7 @@ void testExecFailsOnNewWorkspaceNoMaxLimits(){
TS_ASSERT_THROWS_NOTHING(pAlg->setPropertyValue("OutputWorkspace", "EnergyTransfer4DWS"));
TS_ASSERT_THROWS_NOTHING(pAlg->setPropertyValue("MinValues", "-50.,-50.,-50,-2"));

pAlg->execute();
TSM_ASSERT("Should fail as no max limits were specified ",!pAlg->isExecuted());
TSM_ASSERT_THROWS("Should fail as no max limits were specified ",pAlg->execute(), std::runtime_error);

}
void testExecFailsLimits_MinGeMax(){
Expand All @@ -106,8 +105,7 @@ void testExecFailsLimits_MinGeMax(){
TS_ASSERT_THROWS_NOTHING(pAlg->setPropertyValue("MinValues", "-50.,-50.,-50,-2"));
TS_ASSERT_THROWS_NOTHING(pAlg->setPropertyValue("MaxValues", " 50., 50.,-50,-2"));

pAlg->execute();
TSM_ASSERT("Should fail as wrong max limits were specified ",!pAlg->isExecuted());
TSM_ASSERT_THROWS("Should fail as wrong max limits were specified ",pAlg->execute(), std::runtime_error);

}
void testExecFine(){
Expand Down

0 comments on commit af06ec6

Please sign in to comment.