示例#1
0
文件: QrzTests.cs 项目: rmc47/CamLog
 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
文件: QrzTests.cs 项目: rmc47/CamLog
 public void Login()
 {
     QrzServer server = new QrzServer("M0VFC", "g3pyeflossie");
     server.Login();
 }