Ejemplo n.º 1
0
        public void Config_InGameLog_InGameLogSystem()
        {
            var world = CreateWorld();

            GameActivator.Config(world, new string[] { "ingame-log" });
            Assert.IsTrue(world.LogSystem is InGameLogSystem);
        }
Ejemplo n.º 2
0
        public void Config_DebugEnabled_WorldStatsConsoleCreated()
        {
            var world = CreateWorld();

            GameActivator.Config(world, new string[] { "debug-enabled" });
            Assert.IsNotNull(world.Components.GetOne <WorldStatsConsole>());
        }
Ejemplo n.º 3
0
        public void Config_MultipleArgs_MultipleSystems()
        {
            var world = CreateWorld();

            GameActivator.Config(world, new string[] { "debug-enabled", "ingame-log" });
            Assert.IsTrue(world.LogSystem is InGameLogSystem);
            Assert.IsNotNull(world.Components.GetOne <WorldStatsConsole>());
        }
Ejemplo n.º 4
0
        public void Config_NoLogArgument_NullLogSystem()
        {
            var world = CreateWorld();

            GameActivator.Config(world, new string[0]);
            Assert.IsTrue(world.LogSystem is NullLogSystem);
            Assert.IsNull(world.Components.GetOne <WorldStatsConsole>());
        }