public void DateAddedMinPlusOne() { //create an instance of the class we want to create clsTrainers ATrainer = new clsTrainers(); //string variable to store any error message String Error = ""; //create some test data to pass to the method DateTime TestData; //set the date to todays date TestData = DateTime.Now.Date; //change the date to whatever the date is + 1 day TestData = TestData.AddDays(1); //convert the date variable to a string variable string DateAdded = TestData.ToString(); //invoke the method Error = ATrainer.Valid(Brand, Name, Colour, Size, Price, DateAdded); //test to see that the result is correct Assert.AreNotEqual(Error, ""); }