summaryrefslogtreecommitdiff
path: root/tests/unit/Card/Card_GenerateAnswers_test.h
diff options
context:
space:
mode:
Diffstat (limited to 'tests/unit/Card/Card_GenerateAnswers_test.h')
-rw-r--r--tests/unit/Card/Card_GenerateAnswers_test.h34
1 files changed, 34 insertions, 0 deletions
diff --git a/tests/unit/Card/Card_GenerateAnswers_test.h b/tests/unit/Card/Card_GenerateAnswers_test.h
new file mode 100644
index 0000000..1b69cba
--- /dev/null
+++ b/tests/unit/Card/Card_GenerateAnswers_test.h
@@ -0,0 +1,34 @@
+#include <vector>
+#include <string>
+#include <gtest/gtest.h>
+
+#include "../../../src/dictionary/CardPack.h"
+#include "../../mocks/Dictionary_mock.h"
+#include "../../common/RecordsParam.h"
+
+class Field;
+
+using std::vector;
+using std::string;
+
+class GenerateAnswersTest: public testing::TestWithParam<RecordsParam>
+{
+public:
+ GenerateAnswersTest():
+ pack(&dict) {}
+
+protected:
+ void TearDown();
+ void addFieldToPack(unsigned fieldId);
+
+public:
+ static const vector<string> fieldNames;
+
+protected:
+ vector<Field*> fields;
+
+protected:
+ MockDictionary dict;
+ CardPack pack;
+};
+