Newer
Older
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
#ifndef MANTID_INDIRECTFITDATATEST_H_
#define MANTID_INDIRECTFITDATATEST_H_
#include <cxxtest/TestSuite.h>
#include "IndirectFitData.h"
#include "MantidAPI/MatrixWorkspace.h"
#include "MantidAPI/WorkspaceFactory.h"
#include <iostream>
using namespace Mantid::API;
using namespace MantidQt::CustomInterfaces::IDA;
class IndirectFitDataTest : public CxxTest::TestSuite {
public:
static IndirectFitDataTest *createSuite() {
return new IndirectFitDataTest();
}
static void destroySuite(IndirectFitDataTest *suite) { delete suite; }
void test_data_is_instantiated_correctly() {
MatrixWorkspace_sptr workspace =
WorkspaceFactory::Instance().create("Workspace2D", 1, 9, 9);
const Spectra spec =
std::make_pair(0u, workspace->getNumberHistograms() - 1);
// IndirectFitData data(workspace, spec);
// const std::string name = data.workspace()->getName();
// std::cout << name << "\n";
std::cout << "HELLO";
}
void test_displayName_returns_correct_name() {
// given -
// the workspace and data
// when -
// the parameters equal so and so
// then -
// the output name should be
}
};
#endif