public void ValidMethodOK()
        {
            //create an instance of the class we want to create
            clsCar ACar = new clsCar();
            //booleon variable to store teh result of the validation
            string Error = "";

            //invoke the method
            Error = ACar.Valid(CarModel, CarMake, Colour, Mileage, BodyType, Age);
            //test to see if the result is correct
            Assert.AreEqual(Error, "");
        }
        public void AgeMid()
        {
            //create an instance of the class we want
            clsCar ACar = new clsCar();
            //booleon variable to store the result of the validation
            string Error = "";
            //create some data to assign to the property
            string Age = "50";

            //invoke the method
            Error = ACar.Valid(CarModel, CarMake, Colour, Mileage, BodyType, Age);
            //test to see if the result is correct
            Assert.AreEqual(Error, "");
        }
        public void BodyTypeExtremeMax()
        {
            //create an instance of the class we want
            clsCar ACar = new clsCar();
            //booleon variable to store the result of the validation
            string Error = "";
            //create some data to assign to the property
            string BodyType = "";

            //pad the data
            BodyType = BodyType.PadRight(50, 'j');
            //invoke the method
            Error = ACar.Valid(CarModel, CarMake, Colour, Mileage, BodyType, Age);
            //test to see if the result is correct
            Assert.AreNotEqual(Error, "");
        }