public void RCONLongGoldSrcServer() { GoldSrcServer server = new GoldSrcServer(goldSrcServerAddress, goldSrcServerPort); server.Socket.Timeout = goldSrcServerTimeout; server.RconAuth(goldSrcServerAuth); string rconReply = server.RconExec("cvarlist"); Assert.IsTrue(rconReply.Contains("CvarList ? for syntax"), "Did not receive complete cvarlist."); }
public void RCONShortGoldSrcServer() { GoldSrcServer server = new GoldSrcServer(goldSrcServerAddress, goldSrcServerPort); server.Socket.Timeout = goldSrcServerTimeout; server.RconAuth(sourceServerAuth); string rconReply = server.RconExec("version"); Assert.IsTrue(rconReply.Contains("Protocol version") && rconReply.Contains("Exe version") && rconReply.Contains("Exe build"), "Did not receive correct version response."); }
public void InvalidGoldSrcServer() { GoldSrcServer server = new GoldSrcServer("10.0.0.1"); Assert.AreEqual(server.Ping, -1, "Exception should have been thrown"); }