diff options
Diffstat (limited to 'sigmod/test/TestStore.cpp')
| -rw-r--r-- | sigmod/test/TestStore.cpp | 18 |
1 files changed, 10 insertions, 8 deletions
diff --git a/sigmod/test/TestStore.cpp b/sigmod/test/TestStore.cpp index 8dd568e8..4957e940 100644 --- a/sigmod/test/TestStore.cpp +++ b/sigmod/test/TestStore.cpp @@ -19,20 +19,22 @@ #include "TestStore.h" // Sigmod includes -#include "../Sigmod.h" +#include "../Game.h" #include "../Store.h" // Qt includes #include <QtCore/QFile> #include <QtTest/QTest> +using namespace Sigmod; + void TestStore::initTestCase() { TestSigmodObject::initTestCase(); - m_store1 = m_sigmod->newStore(); - m_store2 = m_sigmod->newStore(); - m_store3 = m_sigmod->newStore(); + m_store1 = m_game->newStore(); + m_store2 = m_game->newStore(); + m_store3 = m_game->newStore(); } void TestStore::cleanupTestCase() @@ -71,7 +73,7 @@ void TestStore::validation() QCOMPARE(m_warnings.size(), 0); QCOMPARE(m_errors.size(), 3); - m_sigmod->newItem(); + m_game->newItem(); m_store1->setItem(0, true); m_store1->validate(); @@ -82,7 +84,7 @@ void TestStore::validation() void TestStore::saving() { - QDomDocument xml = Sigmod::Object::xml(m_store1); + QDomDocument xml = Object::xml(m_store1); QFile file("store.xml"); QVERIFY(file.open(QIODevice::WriteOnly)); @@ -95,7 +97,7 @@ void TestStore::loading() QDomDocument xml; QFile file("store.xml"); - m_sigmod->newItem(); + m_game->newItem(); m_store1->setName("Bar"); m_store1->setItem(0, false); @@ -125,7 +127,7 @@ void TestStore::setName() void TestStore::items() { - m_sigmod->newItem(); + m_game->newItem(); m_store2->setItem(0, true); m_store2->setItem(0, true); |
