import junit.framework.TestCase;

/** Contains methods to test methods of class WurfelSpiel. */
public class WurfelSpielTester extends TestCase {
    
    /**
     * Test throwDie. Do this by calling it 200 times and
       making sure:
       (1) Each value returned is in the range 1..6.
       (2) All values in 1..6 are returned by at least one call.
     */
    public void testThrowDie() {
        /** Boolean array b should be used as follows.
            For each of the 200 times that WurfelSpiel.throwDie()
            is called and produces a value i (say) in the range
            1..6, set b[i] to true.
            
            After calling WurfelSpiel.throwDie() 200 times,
            check (using assertEquals calls) whether
            all the values in b are true.
            */
        boolean[] b= {true, false, false, false, false, false, false};
        
        // Call throwDie() 200 times. When a call produces the value
        // i, check (using assertEquals) that i is in 1..6, and
        // also set b[i] to true.
       
        
        // Check each value b[i], using an assertEquals call,
        // to be sure that b[i] equals true.
        
    }
    
    
    /** Test function WurfelSpiel.toString(String[]). */
    public void testToString() {
        /** This test procedure should create an array
            of Strings, call WurfelSpiel.toString(String[])
            with this array as argument, and use an assertEquals
            statement to check that the result is corect.
            
            You need at least four test cases: Arrays of length
            0, 1, 2, and some number greater than 2. */
    }
    
    /** Test function create0Spiel().*/
    public void testCreate0Spiel() {
        String[] b= WurfelSpiel.create0Spiel();
        assertEquals("measures/m" + 96 + ".wav", b[0]);
    }
    
}
