simulate a pair of dice.

BinsTest.java 526B

12345678910111213141516171819202122232425
  1. import static org.junit.Assert.*;
  2. import org.junit.After;
  3. import org.junit.Before;
  4. import org.junit.Test;
  5. public class BinsTest
  6. { Bins testBins = new Bins();
  7. @Test
  8. public void getTensTest(){
  9. Integer expected = 0;
  10. Integer actual = testBins.getTens();
  11. assertEquals(expected,actual);
  12. }
  13. @Test
  14. public void incrementTest(){
  15. Integer expected = 1;
  16. testBins.increment(10);
  17. Integer actual = testBins.getTens();
  18. assertEquals(expected,actual);
  19. }
  20. }