BornAgain
1.19.0
Simulate and fit neutron and x-ray scattering at grazing incidence
|
Implements class CLASS? More...
Go to the source code of this file.
Classes | |
class | InsertNewItemCommandTest |
Functions | |
TEST_F (InsertNewItemCommandTest, attemptInsertSecondProperty) | |
Attempt to insert second property to the compount item. More... | |
TEST_F (InsertNewItemCommandTest, attemptToExecuteTwice) | |
Attempt to execute command twice. More... | |
TEST_F (InsertNewItemCommandTest, attemptToUndoTwice) | |
Attempt to undo command twice. More... | |
TEST_F (InsertNewItemCommandTest, insertNewItemCommand) | |
Insert new item through InsertNewItemCommand command. More... | |
TEST_F (InsertNewItemCommandTest, insertNewItemWithTagCommand) | |
Insert new item through InsertNewItemCommand command. More... | |
TEST_F (InsertNewItemCommandTest, insertNewPropertyItemIdInPool) | |
Insert new item through InsertNewItemCommand command. More... | |
TEST_F (InsertNewItemCommandTest, insertNewPropertyItemPreservedId) | |
Insert new item through InsertNewItemCommand command. More... | |
Implements class CLASS?
Definition in file insertnewitemcommand.test.cpp.
TEST_F | ( | InsertNewItemCommandTest | , |
attemptInsertSecondProperty | |||
) |
Attempt to insert second property to the compount item.
Definition at line 131 of file insertnewitemcommand.test.cpp.
References ModelView::SessionModel::insertItem(), ModelView::TagInfo::propertyTag(), ModelView::Constants::PropertyType, and ModelView::SessionItem::registerTag().
TEST_F | ( | InsertNewItemCommandTest | , |
attemptToExecuteTwice | |||
) |
Attempt to execute command twice.
Definition at line 103 of file insertnewitemcommand.test.cpp.
References ModelView::SessionModel::rootItem().
TEST_F | ( | InsertNewItemCommandTest | , |
attemptToUndoTwice | |||
) |
Attempt to undo command twice.
Definition at line 116 of file insertnewitemcommand.test.cpp.
References ModelView::SessionModel::rootItem().
TEST_F | ( | InsertNewItemCommandTest | , |
insertNewItemCommand | |||
) |
Insert new item through InsertNewItemCommand command.
Definition at line 45 of file insertnewitemcommand.test.cpp.
References ModelView::SessionItem::childrenCount(), ModelView::SessionItem::getItem(), and ModelView::SessionModel::rootItem().
TEST_F | ( | InsertNewItemCommandTest | , |
insertNewItemWithTagCommand | |||
) |
Insert new item through InsertNewItemCommand command.
Definition at line 73 of file insertnewitemcommand.test.cpp.
References ModelView::Utils::ChildAt(), ModelView::SessionModel::rootItem(), and ModelView::TagInfo::universalTag().
TEST_F | ( | InsertNewItemCommandTest | , |
insertNewPropertyItemIdInPool | |||
) |
Insert new item through InsertNewItemCommand command.
We validate that undoing, and then redoing, would restore very first unique identifier. Same as above, but we additionally controling item pool.
Definition at line 187 of file insertnewitemcommand.test.cpp.
References ModelView::SessionItem::children(), ModelView::SessionItem::childrenCount(), ModelView::ItemFactoryInterface::createItem(), ModelView::AbstractItemCommand::execute(), ModelView::SessionModel::factory(), ModelView::SessionModel::findItem(), ModelView::Constants::PropertyType, ModelView::SessionModel::rootItem(), and ModelView::AbstractItemCommand::undo().
TEST_F | ( | InsertNewItemCommandTest | , |
insertNewPropertyItemPreservedId | |||
) |
Insert new item through InsertNewItemCommand command.
We validate that undoing, and then redoing, would restore very first unique identifier.
Definition at line 161 of file insertnewitemcommand.test.cpp.
References ModelView::SessionItem::children(), ModelView::SessionItem::childrenCount(), ModelView::ItemFactoryInterface::createItem(), ModelView::AbstractItemCommand::execute(), ModelView::SessionModel::factory(), ModelView::Constants::PropertyType, ModelView::SessionModel::rootItem(), and ModelView::AbstractItemCommand::undo().