public void TheAuthorNameShouldBeCorrect(string authorName)
        {
            JiraInfoProvider.SaveParameter("authorName", page.GetAuthorName(), scenarioContext);
            string name = page.GetAuthorName();

            screenshoter.GetScreenshot();
            Assert.AreEqual(name, authorName);
        }
コード例 #2
0
        public void AlwaysPassedTest()
        {
            YouTubePage page   = new YouTubePage("https://www.youtube.com/watch?v=UKKYpdWPSL8");
            string      author = page.GetAuthorName();

            JiraInfoProvider.SaveParameter("Author", author);
            JiraInfoProvider.SaveParameter("Title", page.GetVideoTitle());

            Assert.AreEqual(author, "EPAM Systems Global");
        }
コード例 #3
0
        public void AlwaysFailedTest()
        {
            YouTubePage page   = new YouTubePage("https://www.youtube.com/watch?v=sU4i4DTr1HQ");
            string      author = page.GetAuthorName();
            string      title  = page.GetVideoTitle();

            JiraInfoProvider.SaveParameter("Author", author);
            JiraInfoProvider.SaveParameter("Title", title);

            Screenshoter.Instance.TakeScreenshot();

            Assert.AreEqual("Atlassian", author);
        }