public void LoginExist_NotExeptedLogin_TrueReturned() { string log = "admin123_123"; CorrectInputCheck inputCheck = GetInputCheck(); bool actual = inputCheck.LoginExist(log); Assert.IsTrue(actual); }
public void SelectedItemCheck_PositiveId_TrueReturned() { int id = 2; CorrectInputCheck inputCheck = GetInputCheck(); bool actual = inputCheck.SelectedItemCheck(id); Assert.IsTrue(actual); }
public void BucketIsEmpty_NotExeptedBucketId_FalseReturned() { int id = -999; CorrectInputCheck inputCheck = GetInputCheck(); bool actual = inputCheck.BucketIsEmpty(id); Assert.IsFalse(actual); }
public void CorrectInputLogin_EmptyLogin_TrueReturned(string log) { string login = log; CorrectInputCheck inputCheck = GetInputCheck(); bool actual = inputCheck.CorrectInputLogin(login); Assert.IsFalse(actual); }
public void BucketIsEmpty_ExeptedBucketId_TrueReturned() { int id = 951; CorrectInputCheck inputCheck = GetInputCheck(); bool actual = inputCheck.BucketIsEmpty(id); Assert.IsTrue(actual); }
public void CorrectInputLogin_ValidLogin_TrueReturned() { string login = "******"; CorrectInputCheck inputCheck = GetInputCheck(); bool actual = inputCheck.CorrectInputLogin(login); Assert.IsTrue(actual); }
public void AccessMessage_Yes_TrueReturned() { string msg = "YES"; CorrectInputCheck inputCheck = GetInputCheck(); bool actual = inputCheck.AccessMessage(msg); Assert.IsTrue(actual); }
public void AccessMessage_No_FalseReturned() { string msg = "NO"; CorrectInputCheck inputCheck = GetInputCheck(); bool actual = inputCheck.AccessMessage(msg); Assert.IsFalse(actual); }
public void SelectedItemCheck_NegativeId_FalseReturned() { int id = -1; CorrectInputCheck inputCheck = GetInputCheck(); bool actual = inputCheck.SelectedItemCheck(id); Assert.IsFalse(actual); }
public void LoginExist_ExeptedLogin_FalseReturned() { string log = "admin"; CorrectInputCheck inputCheck = GetInputCheck(); bool actual = inputCheck.LoginExist(log); Assert.IsFalse(actual); }
public void CheckLogPas_NotValidLogAndPass_FalseReturned(string log, string pass) { string login = log; string password = pass; CorrectInputCheck inputCheck = GetInputCheck(); bool actual = inputCheck.CheckLogPas(login, password); Assert.IsFalse(actual); }
public void CheckLogPas_ValidLogAndPass_TrueReturned() { string login = "******"; string password = "******"; CorrectInputCheck inputCheck = GetInputCheck(); bool actual = inputCheck.CheckLogPas(login, password); Assert.IsTrue(actual); }
public void CheckAddEdit_ValidData_TrueReturned() { string title = "RPG"; int category = 2; string cost = "150"; string discription = "Just Test"; string quantity = "10"; CorrectInputCheck inputCheck = GetInputCheck(); bool actual = inputCheck.CheckAddEdit(title, category, cost, discription, quantity); Assert.IsTrue(actual); }
public void CheckAddEdit_NotValidData_FalseReturned(string t, int cat, string c, string d, string q) { string title = t; int category = cat; string cost = c; string discription = d; string quantity = q; CorrectInputCheck inputCheck = GetInputCheck(); bool actual = inputCheck.CheckAddEdit(title, category, cost, discription, quantity); Assert.IsFalse(actual); }
public void ChangeCheck_Equal_FalseReturned() { string[] oldMas = new string[3] { "1", "2", "3" }; string[] newMas = new string[3] { "1", "2", "3" }; CorrectInputCheck inputCheck = GetInputCheck(); bool actual = inputCheck.ChangeCheck(oldMas, newMas); Assert.IsFalse(actual); }
public void OrderCheck_NotCorrectInputs_FalseReturned(string n, string mn, string s, string a, string e, string fE, string numb) { string name = n; string mname = mn; string surname = s; string address = a; string email = e; string fullEmail = fE; string number = numb; CorrectInputCheck inputCheck = GetInputCheck(); bool actual = inputCheck.OrderCheck(name, mname, surname, address, email, fullEmail, number); Assert.IsFalse(actual); }
public void OrderCheck_CorrectInputs_TrueReturned() { string name = "Yura"; string mname = "Michailovich"; string surname = "Yarmoshuk"; string address = "Doroshevica, 3, 230"; string email = "xpblll"; string fullEmail = "*****@*****.**"; string number = "1862949"; CorrectInputCheck inputCheck = GetInputCheck(); bool actual = inputCheck.OrderCheck(name, mname, surname, address, email, fullEmail, number); Assert.IsTrue(actual); }