public void Test_JMB() { StudentBachelor student1 = new StudentBachelor("Dzana", "Hanic", new DateTime(1995, 12, 27), "2712995111222", new DateTime(2014, 10, 10)); fax.upisiStudenta(student1); student1.validirajMaticni("2712995177657"); //test nece pasti jer je maticni ispravan }
public void Test_JMB_Sadrzaj() { StudentBachelor student1 = new StudentBachelor("Dzana", "Hanic", new DateTime(1995, 12, 27), "2712995111222", new DateTime(2014, 10, 10)); student1.validirajMaticni("0712995111222"); //test nece pasti jer maticni nije ispravan (datum je 27) - ocekuje se exception }
public void Test_JMB_13() { StudentBachelor student1 = new StudentBachelor("Dzana", "Hanic", new DateTime(1995, 12, 27), "2712995111222", new DateTime(2014, 10, 10)); student1.validirajMaticni("271299511122"); //test nece pasti jer maticni ne sadrzi 13 cifri (ocekuje se exception) }