public void GetEmailFromDbsFailTest() { string exp = "Not going to happen"; string con = MyMethodsLib.GetConnectionString(); string res = MyMethodsLib.GetEmailFromDbs("ladygoodwill", con); Assert.AreNotEqual(exp, res); }
public void GetEmailFromDbsTest() { string exp = ""; string con = MyMethodsLib.GetConnectionString(); string res = MyMethodsLib.GetEmailFromDbs("ladygoodwill", con); Assert.AreEqual(exp, res); }
public void GetEmailFromDbsExceptionThrownTest() { try { string con = MyMethodsLib.GetConnectionString(); string res = MyMethodsLib.GetEmailFromDbs("ladygoodwill", con); Assert.Fail(); } catch (Exception) { } }