public void TestUnsuccessfulLogin() { var auth = new AwfulAuthenticateByBrowser(); string username = "******"; string password = "******"; auth.Username = username; auth.Password = password; auth.Result += (o, a) => { Assert.AreEqual(a.Value, AwfulAuthenticateByBrowser.LoginResult.LOGIN_FAILED); this.EnqueueTestComplete(); }; auth.LoginAsync(); }
public void TestSuccessfulLogin() { var auth = new AwfulAuthenticateByBrowser(); string username = StaticParameters.TEST_USERNAME; string password = StaticParameters.TEST_PASSWORD; auth.Username = username; auth.Password = password; auth.Result += (o, a) => { Assert.AreEqual(a.Value, AwfulAuthenticateByBrowser.LoginResult.LOGIN_SUCCESSFUL); this.EnqueueTestComplete(); }; auth.LoginAsync(); }