Created
June 19, 2016 14:05
-
-
Save angelovstanton/3fd418e893ec497f7a8a8658013cb934 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[TestClass] | |
public class BingTests | |
{ | |
private BingMainPage bingMainPage; | |
private IDriver driver; | |
[TestInitialize] | |
public void SetupTest() | |
{ | |
this.driver = new SeleniumDriver(); | |
this.bingMainPage = new BingMainPage(this.driver, this.driver); | |
} | |
[TestCleanup] | |
public void TeardownTest() | |
{ | |
this.driver.Quit(); | |
} | |
[TestMethod] | |
public void SearchForAutomateThePlanet() | |
{ | |
this.bingMainPage.Navigate(); | |
this.bingMainPage.Search("Automate The Planet"); | |
this.bingMainPage.AssertResultsCountIsAsExpected(264); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment