private void VerifyAddedStudents() { List <string> stulist = (from student in students select student.Name.ToString()).ToList(); List <string> addedStuList = DemoSiteStudentDetailsPage.GetStudentNames(); var exceptions = addedStuList.Except(stulist).ToList(); Assert.True(exceptions.Count == 0); }
private void VerifyInDemoPage() { Assert.True(DemoSiteStudentDetailsPage.GetDemoSiteStudentDetailsPageTitle().Equals("Student-details"), "Not on a Student Details Page"); }
public void ThenIShouldSeeTheAddedStudent() { List <string> addedStuList = DemoSiteStudentDetailsPage.GetStudentNames(); Assert.True(addedStuList.Contains(ScenarioContext.Current["StudentName"].ToString())); }