-
Notifications
You must be signed in to change notification settings - Fork 0
/
Tests21.java
45 lines (41 loc) · 1.08 KB
/
Tests21.java
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
package src.Tests;
import src.Model.*;
import org.junit.Assert;
import org.junit.Before;
import org.junit.BeforeClass;
import org.junit.Test;
import java.util.ArrayList;
import java.util.List;
import static org.junit.Assert.*;
public class Tests21 {
private Game gam;
@Before
public void setUp(){
gam = new Game(100);
}
@Test
public void decide1(){
boolean actual = gam.player2Decide(13);
boolean expected = true;
Assert.assertEquals(expected, actual);
}
@Test
public void decide2(){
boolean actual = gam.player2Decide(0);
boolean expected = true;
Assert.assertEquals(expected, actual);
}
@Test
public void decide3(){
boolean actual = gam.player2Decide(25);
boolean expected = false;
Assert.assertEquals(expected, actual);
}
@Test
public void give_card(){
gam.make_cards();
int actual = gam.give_card(0, 0);
int expected = 2;
Assert.assertEquals(expected, actual);
}
}