public void Config_InGameLog_InGameLogSystem() { var world = CreateWorld(); GameActivator.Config(world, new string[] { "ingame-log" }); Assert.IsTrue(world.LogSystem is InGameLogSystem); }
public void Config_DebugEnabled_WorldStatsConsoleCreated() { var world = CreateWorld(); GameActivator.Config(world, new string[] { "debug-enabled" }); Assert.IsNotNull(world.Components.GetOne <WorldStatsConsole>()); }
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>()); }
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>()); }