Beispiel #1
0
        public void TestDB_ServerConnection()
        {
            DB_ServerConnection dbc1 = DB_ServerConnection.getInstance();
            DB_ServerConnection dbc2 = DB_ServerConnection.getInstance();

            Assert.AreEqual(dbc1, dbc2);
        }
Beispiel #2
0
        public void TestMakeStudentsFromList4()
        {
            List <Student> l = DB_ServerConnection.MakeListFromString("Настя/Будько/21/МТ-33/ІКТА/Метрологія/ВК11783344/Марія/Лега/20/МТ-33/ІКТА/Метрологія/ВК11663344/");

            Assert.AreEqual(l[1].FirstName, "Марія");
        }
Beispiel #3
0
        public void TestMakeStudentsFromList2()
        {
            List <Student> l = DB_ServerConnection.MakeListFromString("Настя/Будько/21/МТ-33/ІКТА/Метрологія/ВК11783344/");

            Assert.AreEqual(l.Count, 1);
        }
Beispiel #4
0
        public void TestMakeStudentsFromList()
        {
            List <Student> l = DB_ServerConnection.MakeListFromString("");

            Assert.AreEqual(l.Count, 0);
        }