1 #ifndef CHESSGAMESTATETEST_H
2 #define CHESSGAMESTATETEST_H
4 #include <cppunit/extensions/HelperMacros.h>
5 #include <cppunit/TestCaller.h>
6 #include <cppunit/TestResult.h>
7 #include <cppunit/TestFixture.h>
8 #include <cppunit/TestAssert.h>
14 class ChessLegalityTest
: public CppUnit::TestFixture
{
15 CPPUNIT_TEST_SUITE(ChessLegalityTest
);
16 CPPUNIT_TEST(test_movements
);
17 CPPUNIT_TEST(test_pseudolegal
);
18 CPPUNIT_TEST(test_simple_move
);
19 CPPUNIT_TEST(test_promotion
);
20 CPPUNIT_TEST(test_en_passant
);
21 CPPUNIT_TEST(test_castling
);
22 CPPUNIT_TEST(test_attack1
);
23 CPPUNIT_TEST(test_attack2
);
24 CPPUNIT_TEST(test_attack3
);
25 CPPUNIT_TEST(test_attack4
);
26 CPPUNIT_TEST_SUITE_END();
29 IDefaultState
* m_state
;
30 IValidator
* m_validator
;
35 void test_movements();
36 void test_pseudolegal();
37 void test_simple_move();
38 void test_promotion();
39 void test_en_passant();
47 #endif // CHESSGAMESTATETEST_H