public void TestPopulateDataMarkerListDataGridView_GetMarkNameByRowIndex() { markerList.PopulateDataMarkerListDataGridView(1); markerList.GetMarkNameByRowIndex(10); MarkerListController ctl = (MarkerListController)(markerList.getController()); EtyMarker marker1 = new EtyMarker(); marker1.MarkerName = "a1"; ctl.AddMarkerToList(marker1); markerList.PopulateDataMarkerListDataGridView(1); markerList.GetMarkNameByRowIndex(0); EtyMarker marker2 = new EtyMarker(); marker2.MarkerName = "a2"; ctl.AddMarkerToList(marker2); EtyMarker marker3 = new EtyMarker(); marker3.MarkerName = "a3"; ctl.AddMarkerToList(marker3); EtyMarker marker4 = new EtyMarker(); marker4.MarkerName = "a4"; ctl.AddMarkerToList(marker4); EtyMarker marker5 = new EtyMarker(); marker5.MarkerName = "a5"; ctl.AddMarkerToList(marker5); EtyMarker marker6 = new EtyMarker(); marker6.MarkerName = "a6"; ctl.AddMarkerToList(marker6); EtyMarker marker7 = new EtyMarker(); marker7.MarkerName = "a7"; ctl.AddMarkerToList(marker7); EtyMarker marker8 = new EtyMarker(); marker8.MarkerName = "1234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890"; ctl.AddMarkerToList(marker8); markerList.PopulateDataMarkerListDataGridView(1); }
public void TestAddMarkerToList_ModifyMarker_DeleteByMarkerName_ConvertDataTableToList_EditMarker() { string tempMarkerName = "tempName"; EtyMarker marker = new EtyMarker(); marker.MarkerName = tempMarkerName; markerListController.AddMarkerToList(marker); marker.MarkerEnabled = true; markerListController.ModifyMarker(tempMarkerName, marker); marker.MarkerEnabled = false; markerListController.ModifyMarker(tempMarkerName, marker); markerListController.ConvertDataTableToList(); markerListController.EditMarker(tempMarkerName); markerListController.DeleteByMarkerName(tempMarkerName); }
public void TestfirstdataMarkerListDataGridView_Click_nextdataMarkerListDataGridView_Click() { Accessor markerListAccessor = ReflectionAccessor.Wrap(markerList); markerListAccessor.Call("firstdataMarkerListDataGridView_Click", null, null); markerList.PopulateDataMarkerListDataGridView(1); MarkerListController ctl = (MarkerListController)(markerList.getController()); EtyMarker marker9 = new EtyMarker(); marker9.MarkerName = "a9"; ctl.AddMarkerToList(marker9); markerList.PopulateDataMarkerListDataGridView(2); markerListAccessor.Call("nextdataMarkerListDataGridView_Click", null, null); markerListAccessor.Call("pageNumdataMarkerListDataGridView_ValueChanged", null, null); markerListAccessor.Call("prevdataMarkerListDataGridView_Click", null, null); markerListAccessor.Call("lastdataMarkerListDataGridView_Click", null, null); markerListAccessor.Call("dataMarkerListDataGridView_Sorted", null, null); }