303132333435363738
* with a full deck of cards */ private Memory() { gameBoard = new Card[4][13]; difficulty = new EasyDifficulty(); lives = difficulty.getLives(); createBoard(); }
202122232425262728
@Test public void testInitilization() { Memory.reset(); Memory memory = Memory.getInstance(); Difficulty diff = new EasyDifficulty(); memory.setDifficulty(diff); assertEquals(10, memory.getLives()); }