Skip to content

Commit

Permalink
re #4289 sorted out unit test of the categories
Browse files Browse the repository at this point in the history
  • Loading branch information
NickDraper committed Dec 9, 2011
1 parent 2f6f0e6 commit a03d327
Show file tree
Hide file tree
Showing 4 changed files with 1 addition and 16 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -32,11 +32,6 @@ class ConvertToDistributionTest : public CxxTest::TestSuite
TS_ASSERT_EQUALS( conv.version(), 1 )
}

void testCategory()
{
TS_ASSERT_EQUALS( conv.category(), "General" )
}

void testInit()
{
TS_ASSERT_THROWS_NOTHING( conv.initialize() )
Expand Down
5 changes: 0 additions & 5 deletions Code/Mantid/Framework/CurveFitting/test/LinearTest.h
Original file line number Diff line number Diff line change
Expand Up @@ -49,11 +49,6 @@ class LinearTest : public CxxTest::TestSuite
TS_ASSERT_EQUALS( lin.version(), 1 )
}

void testCategory()
{
TS_ASSERT_EQUALS( lin.category(), "CurveFitting" )
}

void testInit()
{
TS_ASSERT_THROWS_NOTHING( lin.initialize() )
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ def test_create_default_version(self):
self.assertNotEqual(alg, None)
self.assertEquals(alg.name(), "ConvertUnits")
self.assertEquals(alg.version(), 1)
self.assertEquals(alg.category(), "Units")
self.assertEquals(alg.category(), "Transforms\\Units")

def test_create_unknown_alg_throws(self):
self.assertRaises(RuntimeError, algorithm_mgr.create,"DoesNotExist")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,11 +22,6 @@ class SANSSolidAngleCorrectionTest : public CxxTest::TestSuite
TS_ASSERT_EQUALS( correction.version(), 1 )
}

void testCategory()
{
TS_ASSERT_EQUALS( correction.category(), "Workflow\\SANS" )
}

void testInit()
{
TS_ASSERT_THROWS_NOTHING( correction.initialize() )
Expand Down

0 comments on commit a03d327

Please sign in to comment.