public void KgToLooseFailTest() { double exp = 100; var res = MyMethodsLib.KgToLoose("ladygoodwill", "89"); Assert.AreNotEqual(exp, res); }
public void getUsernameTest() { string exp = "ladygoodwill"; string res = MyMethodsLib.getUsername("ladygoodwill"); Assert.AreEqual(exp, res); }
public void GetProperWeightCalculationFailTest() { double exp = 10.0; var res = MyMethodsLib.GetProperWeightCalculation("ladygoodwill"); Assert.AreNotEqual(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 GetDietModeFromDbsTest() { string exp = ""; string res = MyMethodsLib.GetDietModeFromDbs("ladygoodwill", MyMethodsLib.GetConnectionString()); Assert.AreEqual(exp, res); }
public void CaloriesIntakeFailTest() { int exp = 90; int res = MyMethodsLib.CaloriesIntake("ladygoodwill"); Assert.AreNotEqual(exp, res); }
public void WeightResultOutput2Test() { string exp = "0"; string res = MyMethodsLib.WeightResultOutput("ladygoodwill", 0, "0"); Assert.AreEqual(exp, res); }
public void DaysToAchieveGoalFailTest() { string exp = "90"; string res = MyMethodsLib.DaysToAchieveGoal("100", 1.5); Assert.AreNotEqual(exp, res); }
public void TimeToAchieveGoalFailTest() { string exp = "100"; string res = MyMethodsLib.TimeToAchieveGoal("70", 7); Assert.AreNotEqual(exp, res); }
public void WeightResultOutputFailTest() { string exp = "101"; string res = MyMethodsLib.WeightResultOutput("ladygoodwill", 34.0, "100"); Assert.AreNotEqual(exp, res); }
public void DaysToAchieveGoal2Test() { string exp = "N/A"; string res = MyMethodsLib.DaysToAchieveGoal("", 0); Assert.AreEqual(exp, res); }
public void getUsernameFailTest() { string exp = "lala"; string res = MyMethodsLib.getUsername("ladygoodwill"); Assert.AreNotEqual(res, exp); }
public void SendMailFailTest() { bool exp = true; bool res = MyMethodsLib.SendMail("This is email", "ladygoodwill"); Assert.AreNotEqual(exp, res); }
public void CalculateBMITest() { string bmiExp = "28.40818"; string bmiRes = MyMethodsLib.CalculateBMI("89", "177"); Assert.AreEqual(bmiExp, bmiRes); }
public void CalculateBMIFailTest() { string bmiExp = "19"; string bmiRes = MyMethodsLib.CalculateBMI("89", "177"); Assert.AreNotEqual(bmiExp, bmiRes); }
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 GetMealDateTest() { string con = MyMethodsLib.GetConnectionString(); DateTime exp = default(DateTime); var res = MyMethodsLib.GetMealDate(0, con); Assert.AreEqual(exp, res); }
public void GetCaloriesToConsumeFailTest() { string con = MyMethodsLib.GetConnectionString(); int exp = 0; int res = MyMethodsLib.GetCaloriesToConsume(0, 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 GetBreakfastIDFailTest() { int exp = 10; string con = MyMethodsLib.GetConnectionString(); int res = MyMethodsLib.GetBreakfastID(0, con); Assert.AreNotEqual(exp, res); }
public void GetMealDateFailTest() { string con = MyMethodsLib.GetConnectionString(); var exp = ""; var res = MyMethodsLib.GetMealDate(0, con); Assert.AreNotEqual(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 GetMeasurementNoWithTodayDateFailTest() { string con = MyMethodsLib.GetConnectionString(); int exp = 10; int res = MyMethodsLib.GetMeasurementNoWithTodayDate("ladygoodwill", 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 GetHeightFromDbsFailTest() { int exp = 100; string con = MyMethodsLib.GetConnectionString(); int res = MyMethodsLib.GetHeightFromDbs("ladygoodwill", con); Assert.AreNotEqual(exp, res); }
public void ChangeEmailTest() { string con = MyMethodsLib.GetConnectionString(); bool exp = false; MyMethodsLib.ChangeEmail("ladygoodwill", "anyemail@com", con); Assert.AreEqual(exp, MyMethodsLib.checkForTesting); }
public void ChangeUserSurNameTest() { string con = MyMethodsLib.GetConnectionString(); bool check = false; MyMethodsLib.ChangeUserSurName("ladygoodwill", "Annannna", con); Assert.AreEqual(check, MyMethodsLib.checkForTesting); }
public void GetEmailFromDbsTest() { string exp = ""; string con = MyMethodsLib.GetConnectionString(); string res = MyMethodsLib.GetEmailFromDbs("ladygoodwill", con); Assert.AreEqual(exp, res); }
public void SendMailExceptionThrownTest() { try { bool res = MyMethodsLib.SendMail("This is email", "ladygoodwill"); Assert.Fail(); } catch (Exception) { } }