-
Notifications
You must be signed in to change notification settings - Fork 2
/
qtconceptmapcommandmove_test.h
53 lines (34 loc) · 1.41 KB
/
qtconceptmapcommandmove_test.h
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
46
47
48
49
50
51
52
#ifndef QTCONCEPTMAP_COMMANDMOVE_TEST_H
#define QTCONCEPTMAP_COMMANDMOVE_TEST_H
#include <QtTest/QtTest>
namespace ribi {
namespace cmap {
class QtCommandMoveTest : public QObject
{
Q_OBJECT //!OCLINT
private slots:
//To do/review:
//Done:
///Does the Command throw when trying to move an absent item?
void MoveAbsentItemByNameFails() const noexcept;
///Does the Command move a QtNode?
void MoveCenterQtNodeByNameFails() const noexcept;
///Does the Command move a QtEdge, in a QtConceptMap with two QtEdges?
void MoveOneOfTwoQtEdgesByName() const noexcept;
///Does the Command move a QtEdge connected to a center QtNode, in a QtConceptMap with two QtEdges?
void MoveOneOfTwoQtEdgesConnectedToCenterQtNodeByName() const noexcept;
///Does the Command move a QtEdge, in a QtConceptMap with one QtEdge?
void MoveOnlyQtEdgeByName() const noexcept;
///Does the Command move a QtEdge connected to a center QtNode, in a QtConceptMap one QtEdge?
void MoveOnlyQtEdgeConnectedToCenterQtNode() const noexcept;
///Does the Command move a QtNode?
void MoveQtNodeByName() const noexcept;
void MoveQtNodeByNameAndUndo() const noexcept;
///Can the Command be created by parsing a string?
void Parse() const noexcept;
///The Command cannot created by parsing nonsense
void ParseNonsenseFails() const noexcept;
};
} //~namespace cmap
} //~namespace ribi
#endif // QTCONCEPTMAP_COMMANDMOVE_TEST_H