//checks course id for incorrect data
        public void EnrolmentFormStudnetIdErroneusdata()
        {
            //create instane to test
            EnrolmentForm stForm = new EnrolmentForm(ref mainform, true);
            //define a test input and output value

            bool expectedResult = false;

            stForm.SetstudentIdAdded("17");

            //run the method under test
            bool actualResult = stForm.ValidateFields();

            //checks results
            Assert.AreEqual(expectedResult, actualResult);
        }
        public void EnrolmentFormDateFormatTest()
        {
            //create instane to test
            EnrolmentForm stForm = new EnrolmentForm(ref mainform, true);
            //define a test input and output value

            bool expectedResult = false;

            stForm.SetDateAdded("19-08-19");

            //run the method under test
            bool actualResult = stForm.ValidateFields();

            //checks results
            Assert.AreEqual(expectedResult, actualResult);
        }