public void VerifyCurrentProject() { Random random = new Random(); DBGenericEntity dbCurrentProjectEntity = new DBCurrentProject(connManager);; ICurrentProject currentProject = BusinessObjectInitializer.CreateCurrentProject(); currentProject.IdAssociate = DATestUtils.DEFAULT_ASSOCIATE; currentProject.IdOwner = DATestUtils.DEFAULT_ENTITY_ID; DataTable tableVerify = SelectCurrentProjectTest(currentProject, dbCurrentProjectEntity).Tables[0]; //Verifies that the table is not null Assert.IsNotNull(tableVerify, "The table returned should not be null"); //Verifies that the table returns the correcty columns DATestUtils.CheckColumn(tableVerify, 0, "ProjectId"); DATestUtils.CheckColumn(tableVerify, 1, "ProjectName"); DATestUtils.CheckColumn(tableVerify, 2, "ProgramName"); DATestUtils.CheckColumn(tableVerify, 3, "ProjectFunction"); DATestUtils.CheckColumn(tableVerify, 4, "ProgramId"); DATestUtils.CheckColumn(tableVerify, 5, "ProjectFunctionId"); DATestUtils.CheckColumn(tableVerify, 6, "OwnerId"); DATestUtils.CheckColumn(tableVerify, 7, "ProgramCode"); DATestUtils.CheckColumn(tableVerify, 8, "ProjectCode"); }