import org.junit.Assert;

import org.junit.Test;

/**
 * JUnit tests for Dice Roulette.
 * 
 * @author YOUR NAME
 * @version DUE DATE
 */
public class RouletteTest {

   /** Delta value to use for assertEquals. */
   public static final double DELTA = 0.01;

   /**
    * Tests the THREE category.
    */
   @Test
   public void testThree() {
      double expect;
      double actual;

      // dice that match the category
      expect = 15.0;
      actual = Roulette.payout(new Dice(1, 2), Roulette.THREE, 1.0);
      Assert.assertEquals("$1.00 THREE (1, 2)", expect, actual, DELTA);

      // dice that don't match the category
      expect = 0.0;
      actual = Roulette.payout(new Dice(3, 4), Roulette.THREE, 1.0);
      Assert.assertEquals("$1.00 THREE (1, 1)", expect, actual, DELTA);
   }

}
