package allumettes;
import org.junit.*;
import static org.junit.Assert.*;

/**
 * Classe de test de la classe JeuProxy.
 * @author Édouard Lumet
 */
public class JeuProxyTest {

	private JeuProxy jeu;

	public static void main(String[] args) {
		org.junit.runner.JUnitCore.main(JeuProxyTest.class.getName());
	}

    @Before
    public void setUp() {
        this.jeu = new JeuProxy(new JeuReel(13));
    }

    @Test
    public void testPriseMax() {
        assertEquals(3, JeuProxy.PRISE_MAX);
    }

    @Test(expected = OperationInterditeException.class)
    public void testRetirer() throws Exception {
        this.jeu.retirer(2);
    }

}
