Exemplo n.º 1
0
        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
        }
Exemplo n.º 2
0
        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
        }
Exemplo n.º 3
0
        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)
        }