Example #1
0
        public void OgrenciArama_Invalid()
        {
            OgrenciGoruntule ogrGor = new OgrenciGoruntule();

            ogrGor.textAraID.Text = "invalid";
            ogrGor.buttonArama_Click(null, null);
            Assert.AreEqual("", ogrGor.komut);
        }
Example #2
0
        public void OgrenciArama_True()
        {
            OgrenciGoruntule ogrGor = new OgrenciGoruntule();

            ogrGor.textAraID.Text = "1";
            ogrGor.buttonArama_Click(null, null);
            String expected = "SELECT isim, evTelefonu, cepTelefonu, ödemeBilgileri FROM Öğrenci where öğrenciID = 1;";

            Assert.AreEqual(expected, ogrGor.komut);
        }