File tree Expand file tree Collapse file tree 1 file changed +10
-0
lines changed
qt/scientific_interfaces/Muon/test Expand file tree Collapse file tree 1 file changed +10
-0
lines changed Original file line number Diff line number Diff line change 11
11
12
12
#include " MantidAPI/FrameworkManager.h"
13
13
#include " MantidAPI/MatrixWorkspace.h"
14
+ #include " MantidFrameworkTestHelpers/WorkspaceCreationHelper.h"
14
15
#include " MantidKernel/WarningSuppressions.h"
15
16
16
17
#include " ../Muon/ALCDataLoadingModel.h"
@@ -217,6 +218,15 @@ class ALCDataLoadingPresenterTest : public CxxTest::TestSuite {
217
218
" Cannot load an empty workspace" );
218
219
}
219
220
221
+ void test_setData_notifies_the_subscriber () {
222
+ const MatrixWorkspace_sptr workspace = WorkspaceCreationHelper::create2DWorkspace (1 , 5 );
223
+
224
+ EXPECT_CALL (*m_view, setDataCurve (workspace, 0u )).Times (1 );
225
+ EXPECT_CALL (*m_subscriber, loadedDataChanged ()).Times (1 );
226
+
227
+ m_presenter->setData (workspace);
228
+ }
229
+
220
230
void test_defaultLoad () {
221
231
InSequence s;
222
232
You can’t perform that action at this time.
0 commit comments