public void AssertFieldValueIsCorrect(string field, string value) { switch (field) { case "Search in": AssertionUtil.AssertEquals(value, FindFilesView.TextBoxSearchIn.Name, "Search in field value is incorrect"); break; } }
public void AssertThenOnlyItemIsFound(string filename) { AssertionUtil.AssertEquals(FindFilesView.ListBoxSearchResults.Items.Count, 2, "Results list size is incorrect"); AssertionUtil.AssertNotNull(FindFilesView.ListItemSearchResultsCount(1, 0), "Count is incorrect"); AssertionUtil.AssertNotNull(FindFilesView.ListItemSearchResult(filename), "Found item is incorrect"); }
public void AssertTabItemIsSelected(string tabItem) { AssertionUtil.AssertEquals(FindFilesView.TabFindFiles.SelectedTab.Name, tabItem, "Incorrect tab is selected"); }