Ejemplo n.º 1
0
        public void ChangeMap()
        {
            var auth = new AuthInfo("test", "test");

            StringAssert.StartsWith("Welcome", server.Register(springieAuth, auth, "Core", "jupiter"));
            var    newMap = server.Galaxy.Planets[5].MapName == "wisconsin" ? "florida" : "wisconsin";
            string message;

            Assert.IsTrue(server.ChangePlanetMap(newMap, auth, out message), message);
            Assert.AreEqual(newMap, server.Galaxy.Planets[5].MapName);
        }