Exemple #1
0
 public void ASSERT_CONNECT(Client client, String address, bool expected)
 {
     bool got = true;
     try
     {
         client.Connect(address);
     }
     catch (Exception )
     {
         got = false;
     }
     if (expected != got) {
         fail(string.Format("ASSERT_CONNECT failed: expected {0} got {1} ", expected, got));
     }
 }