Exemplo n.º 1
0
        public void LuaCreateArea_AddRoom_Test()
        {
            var result = LuaAreaFunctions.LuaProcessArea(GetAreaLuaScript());

            Assert.That(result, Is.Not.Null);
            Assert.That(result.Rooms.Count(), Is.EqualTo(1));
            Assert.That(result.Rooms.First().ID, Is.EqualTo(801));
        }
Exemplo n.º 2
0
        public void LuaCreateAreaTest()
        {
            var result = LuaAreaFunctions.LuaProcessArea(GetAreaLuaScript());

            Assert.That(result, Is.Not.Null);
            Assert.That(result.ID, Is.EqualTo(1));
            Assert.That(result.Name, Is.EqualTo("The Astral"));
            Assert.That(result.Author, Is.EqualTo("Andi"));
            Assert.That(result.HighEconomy, Is.EqualTo(2064393));
            Assert.That(result.HighHardRange, Is.EqualTo(60));
            Assert.That(result.ResetMessage, Is.EqualTo("The astral field glitters with a thousand points of light for a moment..."));
        }