public void SubjectCodeMinPlusOne() { //create an instance of the class we want to create clsSubjectDetails ASubject = new clsSubjectDetails(); //declare a variable to store the result of the validation Boolean Ok; //create some test data string SubjectCode = "ctec34055"; string SubjectName = "hujkg"; //invoke the method Ok = ASubject.Valid(SubjectCode, SubjectName); //test to see if the valid method works Assert.IsFalse(Ok); }
public void SubjectNameExtremeMax() { //create an instance of the class we want to create clsSubjectDetails ASubject = new clsSubjectDetails(); //declare a variable to store the result of the validation Boolean Ok; //create some test data string SubjectCode = "ctec3405"; string SubjectName = "dhfudjdodjdojjosdojsyudnkmolps"; //invoke the method Ok = ASubject.Valid(SubjectCode, SubjectName); //test to see if the valid method works Assert.IsFalse(Ok); }