Пример #1
0
        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.");
        }
Пример #2
0
        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.");
        }