Exemple #1
0
        public void TestMethod3()
        {
            DBOperasyon d      = new DBOperasyon();
            bool        result = d.InsertOda("LAB-2", 2);

            Assert.IsTrue(result);
        }
Exemple #2
0
        public void TestMethod2()
        {
            DBOperasyon d      = new DBOperasyon();
            bool        result = d.Insert("test2", "test-soyad2", "123123124");

            Assert.IsTrue(result);
        }
Exemple #3
0
        public void TestMethod1()
        {
            DBOperasyon     d   = new DBOperasyon();
            List <string[]> tmp = d.PersonelUzerindeDemirbasArama(15);

            Assert.AreEqual(2, tmp.Count);
        }
Exemple #4
0
        public void TestExceptionCase3()
        {
            DBOperasyon d = new DBOperasyon();

            d.PersonelUzerindeDemirbasArama(15);
            try
            {
                d.kontrol = (4).ToString();
            }
            catch (ArgumentOutOfRangeException e)
            {
                StringAssert.Contains(e.Message, "Oda id=1");
            }

            Assert.Fail("No exception was thrown");
        }
Exemple #5
0
        public void TestExceptionCase2()
        {
            DBOperasyon d = new DBOperasyon();

            d.Arama(1);
            try
            {
                d.kontrol = "Sandalye";
            }
            catch (ArgumentOutOfRangeException e)
            {
                StringAssert.Contains(e.Message, "Oda id=1");
            }

            Assert.Fail("No exception was thrown");
        }