|
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 | ProjectManagerDecoratorTest |
| Tests for ProjectManager class. More... | |
Functions | |
| TEST_F (ProjectManagerDecoratorTest, initialState) | |
| Initial state of ProjectManager. Project created, and not-saved. More... | |
| TEST_F (ProjectManagerDecoratorTest, untitledEmptyCreateNew) | |
| Starting from new document (without project dir defined). More... | |
| TEST_F (ProjectManagerDecoratorTest, untitledEmptySaveAs) | |
| Starting from new document (without project dir defined). More... | |
| TEST_F (ProjectManagerDecoratorTest, untitledEmptySaveAsCancel) | |
| Starting from new document (without project dir defined). More... | |
| TEST_F (ProjectManagerDecoratorTest, untitledEmptySaveAsWrongDir) | |
| Starting from new document (without project dir defined). More... | |
| TEST_F (ProjectManagerDecoratorTest, untitledEmptySaveCurrentProject) | |
| Starting from new document (without project dir defined). More... | |
| TEST_F (ProjectManagerDecoratorTest, untitledModifiedOpenExisting) | |
| Untitled, modified document. More... | |
Implements class CLASS?
Definition in file projectmanagerdecorator.test.cpp.
| TEST_F | ( | ProjectManagerDecoratorTest | , |
| initialState | |||
| ) |
Initial state of ProjectManager. Project created, and not-saved.
Definition at line 67 of file projectmanagerdecorator.test.cpp.
References ModelView::ProjectManagerDecorator::currentProjectDir().
| TEST_F | ( | ProjectManagerDecoratorTest | , |
| untitledEmptyCreateNew | |||
| ) |
Starting from new document (without project dir defined).
Create new project in given directory.
Definition at line 76 of file projectmanagerdecorator.test.cpp.
References ModelView::ProjectManagerDecorator::createNewProject(), ModelView::ProjectManagerDecorator::currentProjectDir(), ModelView::Utils::exists(), and ModelView::Utils::join().
| TEST_F | ( | ProjectManagerDecoratorTest | , |
| untitledEmptySaveAs | |||
| ) |
Starting from new document (without project dir defined).
Save under given name.
Definition at line 118 of file projectmanagerdecorator.test.cpp.
References ModelView::ProjectManagerDecorator::currentProjectDir(), ModelView::Utils::exists(), ModelView::Utils::join(), and ModelView::ProjectManagerDecorator::saveProjectAs().
| TEST_F | ( | ProjectManagerDecoratorTest | , |
| untitledEmptySaveAsCancel | |||
| ) |
Starting from new document (without project dir defined).
Attempt to save under empty name, immitating the user canceled directory selection dialog.
Definition at line 139 of file projectmanagerdecorator.test.cpp.
References ModelView::ProjectManagerDecorator::currentProjectDir(), and ModelView::ProjectManagerDecorator::saveProjectAs().
| TEST_F | ( | ProjectManagerDecoratorTest | , |
| untitledEmptySaveAsWrongDir | |||
| ) |
Starting from new document (without project dir defined).
Attempt to save in the non-existing directory.
Definition at line 152 of file projectmanagerdecorator.test.cpp.
References ModelView::ProjectManagerDecorator::currentProjectDir(), and ModelView::ProjectManagerDecorator::saveProjectAs().
| TEST_F | ( | ProjectManagerDecoratorTest | , |
| untitledEmptySaveCurrentProject | |||
| ) |
Starting from new document (without project dir defined).
Saving project. Same behavior as SaveAs.
Definition at line 97 of file projectmanagerdecorator.test.cpp.
References ModelView::ProjectManagerDecorator::currentProjectDir(), ModelView::Utils::exists(), ModelView::Utils::join(), and ModelView::ProjectManagerDecorator::saveCurrentProject().
| TEST_F | ( | ProjectManagerDecoratorTest | , |
| untitledModifiedOpenExisting | |||
| ) |
Untitled, modified document.
Attempt to open existing project will lead to the dialog save/discard/cancel. As a result of whole exersize, existing project should be opened, previous project saved.
Definition at line 165 of file projectmanagerdecorator.test.cpp.
References ModelView::ProjectManagerDecorator::currentProjectDir(), ModelView::DISCARD, ModelView::Utils::exists(), ModelView::ProjectManagerDecorator::isModified(), ModelView::Utils::join(), ModelView::ProjectManagerDecorator::openExistingProject(), ModelView::SAVE, and ModelView::ProjectManagerDecorator::saveProjectAs().