public void GetBreakfast2IDFailTest() { string con = MyMethodsLib.GetConnectionString(); int exp = 10; int res = MyMethodsLib.GetBreakfast2ID(1, con); Assert.AreNotEqual(exp, res); }
public void GetBreakfast2IDExceptionThrownTest() { try { string con = MyMethodsLib.GetConnectionString(); int res = MyMethodsLib.GetBreakfast2ID(1, con); Assert.Fail(); } catch (Exception) { } }