public void PropHasValueTest_False() { string file = "myfile.txt"; ApplicantDatabase ad = ApplicantDatabase.InitializeDatabase(file); Applicant a = new Applicant("1892184593201,Alex,Radu,7,4.75,4,4.5,0"); ad.InsertRecord(a); Assert.IsFalse(ApplicantDatabase.PropHasValue(a, "TestGrade", "8")); }
public void UpdateRecordsTest() { string file = "myfile.txt"; ApplicantDatabase ad = ApplicantDatabase.InitializeDatabase(file); Applicant a = new Applicant("1892184593201,Alex,Radu,7,4.75,4,4.5,0"); ad.InsertRecord(a); ad.UpdateRecords("Surname", "Alex", "TestGrade", "8"); Assert.IsTrue(ApplicantDatabase.PropHasValue(a, "TestGrade", "8")); }