package com.example.diceroller;

import org.junit.Test;

import static org.junit.Assert.*;

/**
 * Example local unit test, which will execute on the development machine (host).
 *
 * @see <a href="http://d.android.com/tools/testing">Testing documentation</a>
 */
public class ExampleUnitTest {
    @Test
    public void addition_isCorrect() {
        assertEquals(4, 2 + 2);
    }
}
package com.example.diceroller;

import static org.junit.Assert.assertTrue;
import org.junit.Test;

public class ExampleUnitTest {
    @Test
    public void generates_number() {
        Dice dice = new Dice(6);
        int diceRoll = dice.roll();
        assertTrue("The value of diceRoll was not between 1 and 6", diceRoll > 0 && diceRoll < 7);
    }
}
Add a unit test for the dice roll logic
Add a unit test for the dice roll logic
