Exemplo n.º 1
0
        public void Humanity_TimeLine_Contains_Data()
        {
            HomePageHelper.OpenHumanityTimeline();
            List <string> labels = TimescaleHelper.GetLabels();

            CollectionAssert.Contains(labels, Label2000Bce, Label2000Bce + " is not presented");
            CollectionAssert.Contains(labels, Label2000Ce, Label2000Ce + " is not presented");
            CollectionAssert.DoesNotContain(labels, Label2001Bce, Label2001Bce + " is presented");
        }
Exemplo n.º 2
0
        public void Roman_History_TimeLine_Borders()
        {
            HomePageHelper.OpenHumanityTimeline();
            HomePageHelper.OpenRomanHistoryTimeline();
            const double expected    = 942;
            double       leftBorder  = TimescaleHelper.GetLeftBorderDate();
            double       rightBorder = TimescaleHelper.GetRightBorderDate();

            Assert.AreEqual(expected, rightBorder - leftBorder);
        }
Exemplo n.º 3
0
        public void Roman_History_TimeLine_Borders_Ages()
        {
            HomePageHelper.OpenHumanityTimeline();
            HomePageHelper.OpenRomanHistoryTimeline();
            const string leftBorderAge = "BCE";
            const string righBorderAge = "CE";
            string       leftBorder    = TimescaleHelper.GetLeftBorderDateAge();
            string       rightBorder   = TimescaleHelper.GetRightBorderDateAge();

            Assert.AreEqual(leftBorderAge, leftBorder);
            Assert.AreEqual(righBorderAge, rightBorder);
        }
Exemplo n.º 4
0
        public void Mouse_Marker()
        {
            HomePageHelper.OpenHumanityTimeline();
            string mouseMarkerText = TimescaleHelper.GetMouseMarkerText();

            HomePageHelper.MoveMouseToCenter();
            string mouseMarkerCenterText = TimescaleHelper.GetMouseMarkerText();

            Assert.AreNotEqual(mouseMarkerText, mouseMarkerCenterText);
            HomePageHelper.MoveMouseToLeft();
            mouseMarkerText = TimescaleHelper.GetMouseMarkerText();
            Assert.AreNotEqual(mouseMarkerText, mouseMarkerCenterText);
        }