2015-08-03 22:00:56 +00:00
|
|
|
#include "BaseTestCase.h"
|
|
|
|
|
|
|
|
#include "Scenery.h"
|
|
|
|
|
|
|
|
TEST(Scenery, saveGlobal)
|
|
|
|
{
|
2015-08-13 17:49:16 +00:00
|
|
|
Scenery scenery1;
|
|
|
|
scenery1.autoPreset();
|
2015-08-03 22:00:56 +00:00
|
|
|
|
2015-08-13 17:49:16 +00:00
|
|
|
Scenery::FileOperationResult result = scenery1.saveGlobal("/tmp/test_paysages_scenery");
|
2015-08-03 22:00:56 +00:00
|
|
|
EXPECT_EQ((int)Scenery::FILE_OPERATION_OK, result);
|
|
|
|
|
2015-08-13 17:49:16 +00:00
|
|
|
Scenery scenery2;
|
|
|
|
result = scenery2.loadGlobal("/tmp/test_paysages_scenery");
|
2015-08-03 22:00:56 +00:00
|
|
|
EXPECT_EQ((int)Scenery::FILE_OPERATION_OK, result);
|
|
|
|
}
|