Skip to content
Jakub Raczek edited this page Jan 19, 2016 · 8 revisions
    [TestFixture]
    public class HerokuappTestsNUnit : ProjectTestBase
    {

        [Test]
        public void BasicAuthTest()
        {
            var basicAuthPage =
                new InternetPage(this.DriverContext).OpenHomePageWithUserCredentials().GoToBasicAuthPage();

            Verify.That(
                this.DriverContext,
                () =>
                Assert.AreEqual(
                    "Congratulations! You must have the proper credentials.",
                    basicAuthPage.GetCongratulationsInfo));
        }
    }
Clone this wiki locally