示例#1
0
 public void TestFakePlayerServerThrowsExceptionWithStringIp()
 {
     Assert.Throws(typeof(SSQLServerException), () =>
     {
         SSQL query = new SSQL();
         //127.0.0.2 set to stop loopback potentially resolving and failing test
         query.Players("127.0.0.2", 27015);
     });
 }
示例#2
0
 public void TestFakePlayerServerThrowsExceptionWithIpEndpoint()
 {
     Assert.Throws(typeof(SSQLServerException), () =>
         {
             SSQL query = new SSQL();
             //127.0.0.2 set to stop loopback potentially resolving and failing test
             query.Players(new IPEndPoint(IPAddress.Parse("127.0.0.2"), 27015));
         });
 }