public void GetMealDateFailTest() { string con = MyMethodsLib.GetConnectionString(); var exp = ""; var res = MyMethodsLib.GetMealDate(0, con); Assert.AreNotEqual(exp, res); }
public void GetMealDateTest() { string con = MyMethodsLib.GetConnectionString(); DateTime exp = default(DateTime); var res = MyMethodsLib.GetMealDate(0, con); Assert.AreEqual(exp, res); }
public void GetMealDateExceptionThrownTest() { try { string con = MyMethodsLib.GetConnectionString(); var res = MyMethodsLib.GetMealDate(0, con); Assert.Fail(); } catch (Exception) { } }