public void clues() // Create a list of clues and check that the clues are assigned to a value { //In the createclues.make_clues_crime_1() function commment out anything to do with sprites clue clue1 = new clue(); clue clue2 = new clue(); clue clue3 = new clue(); clue clue4 = new clue(); clue clue5 = new clue(); clue clue6 = new clue(); clue clue7 = new clue(); clue clue8 = new clue(); clue motive_clue = new clue(); //Motive clue added to test createClue createclues = new createClue(); createclues.clue_1 = clue1; createclues.clue_2 = clue2; createclues.clue_3 = clue3; createclues.clue_4 = clue4; createclues.clue_5 = clue5; createclues.clue_5 = clue5; createclues.clue_6 = clue6; createclues.verbal_clue_7 = clue7; createclues.verbal_clue_8 = clue8; createclues.motiveClue = motive_clue; createclues.make_clues_crime_1(); Assert.AreNotEqual(clue1.getName(), null); // Test fails if a clue is empty }
public void clues() // Create a list of clues and check that the clues are assigned to a value { clue clue1 = new clue(); clue clue2 = new clue(); clue clue3 = new clue(); clue clue4 = new clue(); clue clue5 = new clue(); clue clue6 = new clue(); clue clue7 = new clue(); clue clue8 = new clue(); createClue createclues = new createClue(); createclues.clue_1 = clue1; createclues.clue_2 = clue2; createclues.clue_3 = clue3; createclues.clue_4 = clue4; createclues.clue_5 = clue5; createclues.clue_5 = clue5; createclues.clue_6 = clue6; createclues.verbal_clue_7 = clue7; createclues.verbal_clue_8 = clue8; createclues.make_clues_crime_1(); Assert.AreNotEqual(clue1.getName(), null); // Test fails if a clue is empty }