File indexing completed on 2024-07-21 03:47:10

0001 #ifndef QTEST_ENGINETEST_H
0002 #define QTEST_ENGINETEST_H
0003 
0004 #include "coordinator.h"
0005 #include "engine.h"
0006 #include "scene.h"
0007 
0008 #include <QTest>
0009 
0010 #include <QObject>
0011 
0012 namespace Killbots
0013 {
0014 class EngineTest : public QObject
0015 {
0016     Q_OBJECT
0017 
0018 public:
0019     EngineTest(QObject *parent = nullptr);
0020     ~EngineTest();
0021 
0022 private Q_SLOTS:
0023     void testValidCells_data();
0024     void testValidCells();
0025 
0026     void testRandomEmptyCell_data();
0027     void testRandomEmptyCell();
0028 
0029     void testMoveIsValid_data();
0030     void testMoveIsValid();
0031 
0032     void testMoveIsSafe_data();
0033     void testMoveIsSafe();
0034 
0035 private:
0036     Coordinator *m_coordinator;
0037     Engine *m_engine;
0038     Scene *m_scene;
0039 };
0040 }
0041 #endif
0042