Skip to content

Commit

Permalink
Refs #5146 Begin test unit file
Browse files Browse the repository at this point in the history
 modified: LoadSassena.h
 modified: LoadSassena.cpp
 new file: LoadSassenaTest.h
 new file: AutoTestData/outputSassena_1.4.1.h5
  • Loading branch information
jmborr committed May 10, 2012
1 parent 3e69fca commit 08dcae6
Show file tree
Hide file tree
Showing 4 changed files with 21 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ namespace Mantid

/* Base class to Load a sassena dataset into a MatrixWorkspace
* Derived implementations will load different scattering functions
*/
class LoadDataSet
{

Expand Down
2 changes: 1 addition & 1 deletion Code/Mantid/Framework/DataHandling/src/LoadSassena.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ void LoadSassena::init()
// Declare the Filename algorithm property. Mandatory. Sets the path to the file to load.
this->declareProperty(new API::FileProperty("Filename", "", API::FileProperty::Load, exts),"A Sassena file");
// Declare the OutputWorkspace property
this->declareProperty(new API::WorkspaceProperty<>("OutputWorkspace","",Kernel::Direction::Output), "The name of the group workspace to be created.");
this->declareProperty(new API::WorkspaceProperty<API::WorkspaceGroup>("OutputWorkspace","",Kernel::Direction::Output), "The name of the group workspace to be created.");
}

/**
Expand Down
19 changes: 19 additions & 0 deletions Code/Mantid/Framework/DataHandling/test/LoadSassenaTest.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
#ifndef MANTID_DATAHANDLING_LOADSASSENATEST_H_
#define MANTID_DATAHANDLING_LOADSASSENATEST_H_

#include <cxxtest/TestSuite.h>
#include "MantidDataHandling/LoadSassena.h"

class LoadSassenaTest : public CxxTest::TestSuite
{
public:
void test_Init()
{
Mantid::DataHandling::LoadSassena alg;
TS_ASSERT_THROWS_NOTHING( alg.initialize() )
TS_ASSERT( alg.isInitialized() )
}

};

#endif // MANTID_DATAHANDLING_LOADSASSENATEST_H_
Binary file added Test/AutoTestData/outputSassena_1.4.1.h5
Binary file not shown.

0 comments on commit 08dcae6

Please sign in to comment.