public List <PositionListPublish> PublishPositionsTest(object parameter) { List <PositionListPublish> result = PositionListCheckExe.PublishPositions(parameter); return(result); // TODO: add assertions to method PositionListCheckExeTest.PublishPositionsTest(Object) }
public void PublishPositionsTest() { //Arrange // var myGridview = new System.Web.UI.WebControls.GridView(); string expect = "334"; //Act List <PositionListPublish> checkList = PositionListCheckExe.PublishPositions(parameter); //myGridview.AutoGenerateColumns = true; //myGridview.DataSource = publishList; //myGridview.DataBind(); var result = checkList.Count.ToString();// myGridview.Rows.Count.ToString(); //Assert Assert.IsNotNull(result, $" Publish positions count is { result } "); }