public void FormAuthenticationPageTest() { var formFormAuthentication = new InternetPage(this.DriverContext) .OpenHomePage() .GoToFormAuthenticationPage(); formFormAuthentication.EnterUserName((string)this.TestContext.DataRow["user"]); formFormAuthentication.EnterPassword((string)this.TestContext.DataRow["password"]); formFormAuthentication.LogOn(); Verify.That( this.DriverContext, () => Assert.AreEqual((string)this.TestContext.DataRow["message"], formFormAuthentication.GetMessage)); }