public void FindMethodOK() { //create an instance of the class clsGames AGame = new clsGames(); //boolean variable to store the result of the VALIDATING Boolean Found = false; //create some test data to use with the method Int32 Game_ID = 1; //invoke the method Found = AGame.Find(Game_ID); //test to see that the result is correct Assert.IsTrue(Found); }
public void TestPlatformFound() { //create an instance of the class we want to create clsGames AGame = new clsGames(); //boolean variable to store result of the search Boolean Found = false; //boolean variable to record if data is okay Boolean OK = true; // create some test data to use with the method Int32 Game_ID = 1; //invoke the method Found = AGame.Find(Game_ID); //check the game ID if (AGame.Platform != "Xbox") { OK = false; } //test to see that the results is correct Assert.IsTrue(OK); }