public void RCONLongSourceServer() { SourceServer server = new SourceServer(sourceServerAddress, sourceServerPort); server.RconSocket.Timeout = sourceServerTimeout; server.RconAuth(goldSrcServerAuth); string rconReply = server.RconExec("cvarlist"); Assert.IsTrue(rconReply.Contains("total convars/concommands"), "Did not receive complete cvarlist."); }
public void RCONShortSourceServer() { SourceServer server = new SourceServer(sourceServerAddress, sourceServerPort); server.RconSocket.Timeout = sourceServerTimeout; 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."); }