Пример #1
0
 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");
     }
 }
Пример #2
0
 public void Login()
 {
     QrzServer server = new QrzServer("M0VFC", "g3pyeflossie");
     server.Login();
 }