public void GetDietModeFromDbsFailTest() { string exp = "This is not going to happen"; string res = MyMethodsLib.GetDietModeFromDbs("ladygoodwill", MyMethodsLib.GetConnectionString()); Assert.AreNotEqual(exp, res); }
public void GetDietModeFromDbsTest() { string exp = ""; string res = MyMethodsLib.GetDietModeFromDbs("ladygoodwill", MyMethodsLib.GetConnectionString()); Assert.AreEqual(exp, res); }
public void SetDietModeDbsFailTest() { string con = MyMethodsLib.GetConnectionString(); string exp = "M:"; string res = MyMethodsLib.SetDietModeDbs("ladygoodwill", "M: Intense", con); Assert.AreNotEqual(exp, res); }
public void GetDinnerIDFailTest() { string con = MyMethodsLib.GetConnectionString(); int exp = 1; int res = MyMethodsLib.GetDinnerID(1, con); Assert.AreNotEqual(exp, res); }
public void GetLunchIDTest() { string con = MyMethodsLib.GetConnectionString(); int exp = -1; int res = MyMethodsLib.GetLunchID(1, con); Assert.AreEqual(exp, res); }
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 ChangeUserSurNameTest() { string con = MyMethodsLib.GetConnectionString(); bool check = false; MyMethodsLib.ChangeUserSurName("ladygoodwill", "Annannna", con); Assert.AreEqual(check, MyMethodsLib.checkForTesting); }
public void ChangeEmailTest() { string con = MyMethodsLib.GetConnectionString(); bool exp = false; MyMethodsLib.ChangeEmail("ladygoodwill", "anyemail@com", con); Assert.AreEqual(exp, MyMethodsLib.checkForTesting); }
public void GetMeasurementNoWithTodayDateFailTest() { string con = MyMethodsLib.GetConnectionString(); int exp = 10; int res = MyMethodsLib.GetMeasurementNoWithTodayDate("ladygoodwill", con); Assert.AreNotEqual(exp, res); }
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 GetCaloriesToConsumeFailTest() { string con = MyMethodsLib.GetConnectionString(); int exp = 0; int res = MyMethodsLib.GetCaloriesToConsume(0, con); Assert.AreNotEqual(exp, res); }
public void GetBreakfastIDFailTest() { int exp = 10; string con = MyMethodsLib.GetConnectionString(); int res = MyMethodsLib.GetBreakfastID(0, con); Assert.AreNotEqual(exp, res); }
public void GetWeightInputsTest() { string con = MyMethodsLib.GetConnectionString(); List <string> exp = new List <string>(); var res = MyMethodsLib.GetWeightInputs("ladygoodwill", con); Assert.AreEqual(exp.Count, res.Count); }
public void GetEmailFromDbsTest() { string exp = ""; string con = MyMethodsLib.GetConnectionString(); string res = MyMethodsLib.GetEmailFromDbs("ladygoodwill", con); Assert.AreEqual(exp, res); }
public void GetHeightFromDbsFailTest() { int exp = 100; string con = MyMethodsLib.GetConnectionString(); int res = MyMethodsLib.GetHeightFromDbs("ladygoodwill", con); Assert.AreNotEqual(exp, res); }
public void GetConnectionStringExceptionThrownTest() { try { string connRes = MyMethodsLib.GetConnectionString(); Assert.Fail(); } catch (Exception) { } }
public void GetDietModeFromDbsExceptionThrownTest() { try { string res = MyMethodsLib.GetDietModeFromDbs("ladygoodwill", MyMethodsLib.GetConnectionString()); Assert.Fail(); } catch (Exception) { } }
public void GetMeasurementNoWithTodayDateExceptionThrownTest() { try { string con = MyMethodsLib.GetConnectionString(); int res = MyMethodsLib.GetMeasurementNoWithTodayDate("ladygoodwill", con); Assert.Fail(); } catch (Exception) { } }
public void ChangeEmailExceptionThrownTest() { try { string con = MyMethodsLib.GetConnectionString(); MyMethodsLib.ChangeEmail("ladygoodwill", "anyemail@com", con); Assert.Fail(); } catch (Exception) { } }
public void GetMealDateExceptionThrownTest() { try { string con = MyMethodsLib.GetConnectionString(); var res = MyMethodsLib.GetMealDate(0, con); Assert.Fail(); } catch (Exception) { } }
public void ChangeUserSurNameExceptionThrownTest() { try { string con = MyMethodsLib.GetConnectionString(); MyMethodsLib.ChangeUserSurName("ladygoodwill", "Abrakadabra", con); Assert.Fail(); } catch (Exception) { } }
public void GetCaloriesToConsumeExceptionThrownTest() { try { string con = MyMethodsLib.GetConnectionString(); int res = MyMethodsLib.GetCaloriesToConsume(0, con); Assert.Fail(); } catch (Exception) { } }
public void GetDinnerIDExceptionThrownTest() { try { string con = MyMethodsLib.GetConnectionString(); int res = MyMethodsLib.GetDinnerID(1, con); Assert.Fail(); } catch (Exception) { } }
public void GetWeightInputsExceptionThrownTest() { try { string con = MyMethodsLib.GetConnectionString(); var res = MyMethodsLib.GetWeightInputs("ladygoodwill", con); Assert.Fail(); } catch (Exception) { } }
public void GetHeightFromDbsExceptionThrownTest() { try { string con = MyMethodsLib.GetConnectionString(); int res = MyMethodsLib.GetHeightFromDbs("ladygoodwill", con); Assert.Fail(); } catch (Exception) { } }
public void GetDatesOfInputWeightFailTest() { List <string> emptyList = new List <string>(); int exp = emptyList.Count + 1; string con = MyMethodsLib.GetConnectionString(); List <string> listRes = MyMethodsLib.GetDatesOfInputWeight("ladygoodwill", con); int res = listRes.Count; Assert.AreNotEqual(exp, res); }
public void GetDatesOfInputWeightExceptionThrownTest() { try { string con = MyMethodsLib.GetConnectionString(); List <string> listRes = MyMethodsLib.GetDatesOfInputWeight("ladygoodwill", con); Assert.Fail(); } catch (Exception) { } }
public void SetDietModeDbsExceptionThrownTest() { string exp = ""; try { string con = MyMethodsLib.GetConnectionString(); exp = MyMethodsLib.SetDietModeDbs("ladygoodwill", "M: Intense", con); Assert.Fail(); } catch (Exception) { } }
public void RecordRecipesToDbsExceptionThrown2Test() { try { string con = MyMethodsLib.GetConnectionString(); List <int> example = new List <int>() { 1, 1, 1, 1, 1 }; MyMethodsLib.RecordRecipesToDbs(example, 1, con); Assert.Fail(); } catch (Exception) { } }