public void FindMethodOK() { //create an instance of the class we want to create clsRoomType ARoomtype = new clsRoomType(); //boolean variable to store the result of the validation Boolean Found = false; //create some test data to use with the method Int32 RoomtypeID = 81; //invoke method Found = ARoomtype.Find(RoomtypeID); //test to see that the result is correct Assert.IsTrue(Found); }
public void TestDateAddedFound() { //create an instance of the class we want to create clsRoomType ARoomtype = new clsRoomType(); //boolean variable to store the result of the validation Boolean Found = false; //boolean variable to record if data is OK (assume it is) Boolean OK = true; //create some test data to use with the method Int32 RoomtypeID = 81; //invoke method Found = ARoomtype.Find(RoomtypeID); //check the RoomypeID if (ARoomtype.DateTime != Convert.ToDateTime("12/03/2020")) { OK = false; } //test to see that the result is correct Assert.IsTrue(OK); }