public void TestMethod3() { DBOperasyon d = new DBOperasyon(); bool result = d.InsertOda("LAB-2", 2); Assert.IsTrue(result); }
public void TestMethod2() { DBOperasyon d = new DBOperasyon(); bool result = d.Insert("test2", "test-soyad2", "123123124"); Assert.IsTrue(result); }
public void TestMethod1() { DBOperasyon d = new DBOperasyon(); List <string[]> tmp = d.PersonelUzerindeDemirbasArama(15); Assert.AreEqual(2, tmp.Count); }
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"); }
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"); }