Första
This commit is contained in:
7
PokerKata/src/session3/PokerGame.java
Normal file
7
PokerKata/src/session3/PokerGame.java
Normal file
@@ -0,0 +1,7 @@
|
|||||||
|
package session3;
|
||||||
|
|
||||||
|
public class PokerGame {
|
||||||
|
public int getHand() {
|
||||||
|
return 5;
|
||||||
|
}
|
||||||
|
}
|
||||||
24
PokerKata/test/session3/PokerGameTest.java
Normal file
24
PokerKata/test/session3/PokerGameTest.java
Normal file
@@ -0,0 +1,24 @@
|
|||||||
|
package session3;
|
||||||
|
|
||||||
|
import org.junit.Test;
|
||||||
|
import static org.junit.Assert.assertEquals;
|
||||||
|
|
||||||
|
public class PokerGameTest {
|
||||||
|
// FIXME give_me_five
|
||||||
|
// FIXME draw_one_card
|
||||||
|
// FIXME draw_five_cards
|
||||||
|
// FIXME draw_one_hand
|
||||||
|
// FIXME compare_two_hands
|
||||||
|
// FIXME find_highest_score
|
||||||
|
|
||||||
|
PokerGame myGame = new PokerGame();
|
||||||
|
|
||||||
|
@Test
|
||||||
|
public void give_me_five() throws Exception {
|
||||||
|
|
||||||
|
int result = myGame.getHand();
|
||||||
|
|
||||||
|
assertEquals(5, result);
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user