Esempio n. 1
0
        public void Humanity_TimeLine_Contains_Data()
        {
            TimelineHelper.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");
        }
Esempio n. 2
0
        public void Roman_History_TimeLine_Borders()
        {
            TimelineHelper.OpenHumanityTimeline();
            TimelineHelper.OpenRomanHistoryTimeline();
            const double expected    = 942;
            double       leftBorder  = TimescaleHelper.GetLeftBorderDate();
            double       rightBorder = TimescaleHelper.GetRightBorderDate();

            Assert.AreEqual(expected, rightBorder - leftBorder);
        }
Esempio n. 3
0
        public void Roman_History_TimeLine_Borders_Ages()
        {
            TimelineHelper.OpenHumanityTimeline();
            TimelineHelper.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);
        }
Esempio n. 4
0
        public void Mouse_Marker()
        {
            TimelineHelper.OpenHumanityTimeline();
            string mouseMarkerText = TimescaleHelper.GetMouseMarkerText();

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

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