public void TestGetServerNames()
        {
            m_serverInfoMgr.AddServerInfo(ref m_ServerListNode1);
            ServerInfo refServerInfo1 = m_serverInfoMgr.Find(TEST_SERVER_NAME1);

            m_serverInfoMgr.AddServerInfo(ref m_ServerListNode2);
            ServerInfo refServerInfo2 = m_serverInfoMgr.Find(TEST_SERVER_NAME2);

            Assert.AreEqual(TEST_SERVER_NAME1, refServerInfo1.GetName());
            Assert.AreEqual(TEST_SERVER_NAME2, refServerInfo2.GetName());
        }
Beispiel #2
0
        public void TestIsRevivableServer()
        {
            m_serverInfoMgr.AddServerInfo(TEST_SERVER_TYPE, TEST_SERVER_NAME1, TEST_SERVER_EXE_PATH1, WORLD_ID1, SERVER_ID1);
            ServerInfo refServerInfo1 = m_serverInfoMgr.Find(TEST_SERVER_NAME1);

            Assert.AreEqual(false, refServerInfo1.IsRevivable);

            refServerInfo1.SetProcessDied();
            refServerInfo1.SetProcessRevivable(true);

            Assert.AreEqual(true, refServerInfo1.IsRevivable);
        }