public void Test_GroupFormBudgetOwnerCheck(string groupName, int location, bool budgetOwner, int direction, string startDate, string finishDate, string teacher, string experts) { groupsForm.setBudgetOwner(budgetOwner); bool expectedResult = groupsForm.BudgetOwnerCheckbox.Selected; groupsForm.SubmitButton.Click(); bool actualResult = (table.GetRowsWithColumns()[table.GetRowNumberByValueInCell(index, 0) - 1][2].GetAttribute("checked")) != null; Assert.AreEqual(expectedResult, actualResult); }
public void Test_BudgetOwnerCheckBox() { groupForm.setBudgetOwner(true); Assert.IsTrue(groupForm.BudgetOwnerCheckbox.Selected); }