public void GetDietModeFromDbsTest() { string exp = ""; string res = MyMethodsLib.GetDietModeFromDbs("ladygoodwill", MyMethodsLib.GetConnectionString()); Assert.AreEqual(exp, res); }
public void GetDietModeFromDbsFailTest() { string exp = "This is not going to happen"; string res = MyMethodsLib.GetDietModeFromDbs("ladygoodwill", MyMethodsLib.GetConnectionString()); Assert.AreNotEqual(exp, res); }
public void GetDietModeFromDbsExceptionThrownTest() { try { string res = MyMethodsLib.GetDietModeFromDbs("ladygoodwill", MyMethodsLib.GetConnectionString()); Assert.Fail(); } catch (Exception) { } }