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."); }