public void FailedLogin() { try { QrzServer server = new QrzServer("M0VFC", "random"); server.Login(); Assert.Fail("Expected login to fail with random password"); } catch (InvalidDataException ex) { Assert.That(ex.Message.Contains("Login"), "Expected message to indicate login failure"); } }
public void Login() { QrzServer server = new QrzServer("M0VFC", "g3pyeflossie"); server.Login(); }