Package games.memory.difficulty

Source Code of games.memory.difficulty.TestHardDifficulty

package games.memory.difficulty;

import static org.junit.Assert.*;
import games.memory.Memory;

import org.junit.Test;

/**
* Tests associated with HardDifficulty
* @author Ian Keefer
*/
public class TestHardDifficulty
{

  /**
   * tests the initlization of hard difficulty
   */
    @Test
    public void testInitilization()
    {
        Memory.reset();
        Memory memory = Memory.getInstance();
        Difficulty diff = new HardDifficulty();
        memory.setDifficulty(diff);
        assertEquals(5, memory.getLives());
    }

}
TOP

Related Classes of games.memory.difficulty.TestHardDifficulty

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.