public void Test_UserFormPasswordIsNotEdit_Fail(string name, string sername, string login, string password) { usersForm.Password.Clear(); usersForm.setPassword(password) .SubmitButton.Click(); expectedResult = usersForm.RememberUser(); expectedResult.Add("EditDelete"); Assert.IsFalse(table.FindRowInTable(expectedResult)); }
public void Test_UserFormPasswordIsEdit() { usersForm.Password.Clear(); usersForm.setPassword("asdfghj12`") .SubmitButton.Click(); expectedResult = usersForm.RememberUser(); List <string> actualResult = table.getRowWithColumns(table.GetRowNumberByValueInCell(index, 5)); actualResult.RemoveAt(7); CollectionAssert.AreEqual(expectedResult, actualResult); }