예제 #1
0
        public static void AssertReportExists(
            this CourseTracksPage courseTracksPage, string filePath)
        {
            Assert.IsTrue(File.Exists(filePath));
            FileInfo fileInfo = new FileInfo(filePath);

            Assert.IsTrue(fileInfo.Length > 0);
        }
예제 #2
0
 public static void AssertAddedCourseTrackWithValidRequiredData(
     this CourseTracksPage courseTracksPage, string nameBg, string nameEn, string urlName)
 {
     Assert.AreEqual(nameBg, courseTracksPage.Grid
                     .Rows.FirstOrDefault().Cells[ColumnNameBgNumber]
                     .Find.AllByTagName <HtmlAnchor>("a").FirstOrDefault().TextContent);
     Assert.AreEqual(nameEn, courseTracksPage.Grid
                     .Rows.FirstOrDefault().Cells[ColumnNameEnNumber].TextContent);
     Assert.AreEqual(urlName, courseTracksPage.Grid
                     .Rows.FirstOrDefault().Cells[ColumnUrlNameNumber].TextContent);
 }
예제 #3
0
 public static void AssertAddCourseTrackWithoutUrlName(
     this CourseTracksPage courseTracksPage)
 {
     Assert.IsTrue(courseTracksPage.UrlNameValidationMessage.IsVisible());
     Assert.AreEqual(UrlNameValidationMessage, courseTracksPage.UrlNameValidationMessage.TextContent);
 }
예제 #4
0
 public static void AssertAddCourseTrackWithoutNameInEnglish(
     this CourseTracksPage courseTracksPage)
 {
     Assert.IsTrue(courseTracksPage.NameEnValidationMessage.IsVisible());
     Assert.AreEqual(NameEnValidationMessage, courseTracksPage.NameEnValidationMessage.TextContent);
 }
예제 #5
0
 public void TestInitialize()
 {
     this.courseTrackPage = new CourseTracksPage(this.Manager);
 }