public void GetStudentsByGender_Type() { //Instance the object clsStudent oStudent = new clsStudent(); var vResult = oStudent.GetStudentsByGender_Type("F", "High"); Assert.IsNotNull(vResult, "Test"); Console.WriteLine("-----Test Get Students by Gender and Type-----"); int count = 0; foreach (DataRow datarow in vResult.Rows) { count++; Console.WriteLine("***************** Record " + count + "********************"); Console.WriteLine(datarow[0].ToString() + " " + datarow[1].ToString() + " " + datarow[2].ToString() + " " + datarow[3].ToString() + " " + datarow[4].ToString()); } }