Commit 7f46051f by Paktalin

KnightTest added

parent ca02c79c
...@@ -25,6 +25,7 @@ public class AllTests extends TestSuite { ...@@ -25,6 +25,7 @@ public class AllTests extends TestSuite {
suite.addTestSuite(QueenTest.class); suite.addTestSuite(QueenTest.class);
suite.addTestSuite(BishopTest.class); suite.addTestSuite(BishopTest.class);
suite.addTestSuite(RookTest.class); suite.addTestSuite(RookTest.class);
suite.addTestSuite(KnightTest.class);
return suite; return suite;
} }
......
package com.example.paktalin.agilejava_exercises.pieces;
/**
* Created by Paktalin on 01/06/2018.
*/
public class KnightTest extends PieceTest {
@Override
void setExpectedRepresentation() {
representation = 'n';
}
@Override
Piece createPiece(Piece.Color color) {
return new Knight(color);
}
@Override
void setExpectedStrength() {
strength = 2.5;
}
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment