Lite fler test
This commit is contained in:
@@ -1,10 +1,13 @@
|
|||||||
package session3;
|
package session3;
|
||||||
|
|
||||||
|
import org.junit.Ignore;
|
||||||
import org.junit.Test;
|
import org.junit.Test;
|
||||||
import static org.junit.Assert.assertEquals;
|
|
||||||
|
import static org.junit.Assert.*;
|
||||||
|
|
||||||
public class PokerGameTest {
|
public class PokerGameTest {
|
||||||
// FIXME give_me_five
|
// FIXME get_color
|
||||||
|
// FIXME get_value
|
||||||
// FIXME draw_one_card
|
// FIXME draw_one_card
|
||||||
// FIXME draw_five_cards
|
// FIXME draw_five_cards
|
||||||
// FIXME draw_one_hand
|
// FIXME draw_one_hand
|
||||||
@@ -21,4 +24,27 @@ public class PokerGameTest {
|
|||||||
assertEquals(5, result);
|
assertEquals(5, result);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Test
|
||||||
|
@Ignore
|
||||||
|
public void get_color() throws Exception {
|
||||||
|
int result = myGame.getHand();
|
||||||
|
|
||||||
|
assertEquals("Spades", result);
|
||||||
|
}
|
||||||
|
|
||||||
|
@Test
|
||||||
|
@Ignore
|
||||||
|
public void get_value() throws Exception {
|
||||||
|
int result = myGame.getHand();
|
||||||
|
|
||||||
|
assertEquals(5, result);
|
||||||
|
}
|
||||||
|
|
||||||
|
@Test
|
||||||
|
@Ignore
|
||||||
|
public void draw_one_card() throws Exception {
|
||||||
|
int result = myGame.getHand();
|
||||||
|
|
||||||
|
assertEquals("C7", result);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user