Package uk.co.iscoding.freecell.game

Source Code of uk.co.iscoding.freecell.game.FreeCellLayoutTest

package uk.co.iscoding.freecell.game;

import org.junit.Test;
import uk.co.iscoding.freecell.cards.DeckOfCards;

import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertNotSame;

/**
* Created with IntelliJ IDEA.
* User: Stuart
* Date: 28/05/2013
* Time: 22:06
*/
public class FreeCellLayoutTest {
    @Test
    public void testIsFinished() throws Exception {

    }

    @Test
    public void testPrintPriorMoves() throws Exception {

    }

    @Test
    public void testGetPossibleMoves() throws Exception {

    }

    @Test
    public void testEqualsAndHashCode() throws Exception {
        FreeCellLayout layout1 = new FreeCellLayout(new DeckOfCards());
        FreeCellLayout layout2 = new FreeCellLayout(new DeckOfCards());

        // These will not be the same because all areas are based on sets, but should be equal
        assertNotSame("Layouts are not the same object", layout1, layout2);
        assertEquals("Hashcodes are equal", layout1.hashCode(), layout2.hashCode());
        assertEquals("Layouts are equal", layout1, layout2);
    }
}
TOP

Related Classes of uk.co.iscoding.freecell.game.FreeCellLayoutTest

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.