public void playerColorsTest(Color expected) { Inventory_CE i = new Inventory_CE(); Player_CE_085 p = new Player_CE_085(i, null); Color actual = p.getColor(); assertTrue( "\nThe expected color was: " + expected + "\nThe actual color was: " + actual, expected != actual); }
private void testInitialScore(int expected) { Inventory_CE i = new Inventory_CE(); Player_CE_085 p = new Player_CE_085(i, null); int actual = p.getScore(); assertTrue( "I tested whether or not the Player's score was" + expected + "and it should have returned" + actual, actual == expected); }
private void testAddScore(int original, int add, int total) { Inventory_CE i = new Inventory_CE(); Player_CE_085 p = new Player_CE_085(i, null); int actual = p.addScore(original, add); assertTrue( "I tested whether or not the Player's score was" + total + "after adding" + original + "and" + add + "and it should have returned" + actual, actual == total); }