Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- [Test]
- public void TestExample()
- {
- // First, instantiate "Tester" objects:
- LabelTester label = new LabelTester("textLabel");
- LinkButtonTester link = new LinkButtonTester("linkButton");
- // Second, visit the page being tested:
- Browser.GetPage("http://localhost/example/example.aspx");
- // Third, use tester objects to test the page:
- Assert.AreEqual("Not clicked.", label.Text);
- link.Click();
- Assert.AreEqual("Clicked once.", label.Text);
- link.Click();
- Assert.AreEqual("Clicked twice.", label.Text);
- }
Add Comment
Please, Sign In to add comment