예제 #1
0
        protected bool RunEntityReflectionUnitTests()
        {
            bool result = true;

            if (!BaseObject.ReflectionUnitTest())
            {
                result = false;
                BaseLog.Warn("BaseObject reflection validation failed!");
            }

            if (!BaseEntity.ReflectionUnitTest())
            {
                result = false;
                BaseLog.Warn("BaseEntity reflection validation failed!");
            }

            if (!BaseEntityNetworkManager.ReflectionUnitTest())
            {
                result = false;
                BaseLog.Warn("BaseEntityNetworkManager reflection validation failed!");
            }

            if (!CubeGridEntity.ReflectionUnitTest())
            {
                result = false;
                BaseLog.Warn("CubeGridEntity reflection validation failed!");
            }

            //if (!CubeGridManagerManager.ReflectionUnitTest())
            //{
            //	result = false;
            //	BaseLog.Warn("CubeGridManagerManager reflection validation failed!");
            //}

            if (!CubeGridNetworkManager.ReflectionUnitTest())
            {
                result = false;
                BaseLog.Warn("CubeGridNetworkManager reflection validation failed!");
            }

            if (!CubeGridThrusterManager.ReflectionUnitTest())
            {
                result = false;
                BaseLog.Warn("CubeGridThrusterManager reflection validation failed!");
            }

            if (!SectorObjectManager.ReflectionUnitTest())
            {
                result = false;
                BaseLog.Warn("SectorObjectManager reflection validation failed!");
            }

            if (!CharacterEntity.ReflectionUnitTest())
            {
                result = false;
                BaseLog.Warn("CharacterEntity reflection validation failed!");
            }

            if (!CharacterEntityNetworkManager.ReflectionUnitTest())
            {
                result = false;
                BaseLog.Warn("CharacterEntityNetworkManager reflection validation failed!");
            }

            if (!FloatingObject.ReflectionUnitTest())
            {
                result = false;
                BaseLog.Warn("FloatingObject reflection validation failed!");
            }

            if (!FloatingObjectManager.ReflectionUnitTest())
            {
                result = false;
                BaseLog.Warn("FloatingObjectManager reflection validation failed!");
            }

            if (!InventoryEntity.ReflectionUnitTest())
            {
                result = false;
                BaseLog.Warn("InventoryEntity reflection validation failed!");
            }

            if (!InventoryItemEntity.ReflectionUnitTest())
            {
                result = false;
                BaseLog.Warn("InventoryItemEntity reflection validation failed!");
            }

/*
 *                      if (!VoxelMap.ReflectionUnitTest())
 *                      {
 *                              result = false;
 *                              BaseLog.Warn("VoxelMap reflection validation failed!");
 *                      }
 *
 *                      if (!VoxelMapMaterialManager.ReflectionUnitTest())
 *                      {
 *                              result = false;
 *                              BaseLog.Warn("VoxelMapMaterialManager reflection validation failed!");
 *                      }
 */
            if (result)
            {
                BaseLog.Info("All entity types passed reflection unit tests!");
            }

            return(result);
        }
예제 #2
0
        protected bool RunEntityReflectionUnitTests()
        {
            bool result = true;

            if (!BaseObject.ReflectionUnitTest())
            {
                result = false;
                Console.WriteLine("BaseObject reflection validation failed!");
            }

            if (!BaseEntity.ReflectionUnitTest())
            {
                result = false;
                Console.WriteLine("BaseEntity reflection validation failed!");
            }

            if (!BaseEntityNetworkManager.ReflectionUnitTest())
            {
                result = false;
                Console.WriteLine("BaseEntityNetworkManager reflection validation failed!");
            }

            if (!CubeGridEntity.ReflectionUnitTest())
            {
                result = false;
                Console.WriteLine("CubeGridEntity reflection validation failed!");
            }

            if (!CubeGridManagerManager.ReflectionUnitTest())
            {
                result = false;
                Console.WriteLine("CubeGridManagerManager reflection validation failed!");
            }

            if (!CubeGridNetworkManager.ReflectionUnitTest())
            {
                result = false;
                Console.WriteLine("CubeGridNetworkManager reflection validation failed!");
            }

            if (!CubeGridThrusterManager.ReflectionUnitTest())
            {
                result = false;
                Console.WriteLine("CubeGridThrusterManager reflection validation failed!");
            }

            if (!SectorObjectManager.ReflectionUnitTest())
            {
                result = false;
                Console.WriteLine("SectorObjectManager reflection validation failed!");
            }

            if (!CharacterEntity.ReflectionUnitTest())
            {
                result = false;
                Console.WriteLine("CharacterEntity reflection validation failed!");
            }

            if (!CharacterEntityNetworkManager.ReflectionUnitTest())
            {
                result = false;
                Console.WriteLine("CharacterEntityNetworkManager reflection validation failed!");
            }

            if (!FloatingObject.ReflectionUnitTest())
            {
                result = false;
                Console.WriteLine("FloatingObject reflection validation failed!");
            }

            if (!FloatingObjectManager.ReflectionUnitTest())
            {
                result = false;
                Console.WriteLine("FloatingObjectManager reflection validation failed!");
            }

            if (!InventoryEntity.ReflectionUnitTest())
            {
                result = false;
                Console.WriteLine("InventoryEntity reflection validation failed!");
            }

            if (!InventoryItemEntity.ReflectionUnitTest())
            {
                result = false;
                Console.WriteLine("InventoryItemEntity reflection validation failed!");
            }

            if (!PowerProducer.ReflectionUnitTest())
            {
                result = false;
                Console.WriteLine("PowerProducer reflection validation failed!");
            }

            if (!PowerReceiver.ReflectionUnitTest())
            {
                result = false;
                Console.WriteLine("PowerReceiver reflection validation failed!");
            }

            if (!VoxelMap.ReflectionUnitTest())
            {
                result = false;
                Console.WriteLine("VoxelMap reflection validation failed!");
            }

            if (!VoxelMapMaterialManager.ReflectionUnitTest())
            {
                result = false;
                Console.WriteLine("VoxelMapMaterialManager reflection validation failed!");
            }

            if (result)
            {
                Console.WriteLine("All entity types passed reflection unit tests!");
            }

            return(result);
        }
예제 #3
0
        protected bool RunReflectionUnitTests()
        {
            bool result = true;

            if (!BaseObject.ReflectionUnitTest())
            {
                result = false;
                Console.WriteLine("BaseObject reflection validation failed!");
            }

            if (!BaseEntity.ReflectionUnitTest())
            {
                result = false;
                Console.WriteLine("BaseEntity reflection validation failed!");
            }

            if (!BaseEntityNetworkManager.ReflectionUnitTest())
            {
                result = false;
                Console.WriteLine("BaseEntityNetworkManager reflection validation failed!");
            }

            if (!CubeGridEntity.ReflectionUnitTest())
            {
                result = false;
                Console.WriteLine("CubeGridEntity reflection validation failed!");
            }

            if (!CubeGridNetworkManager.ReflectionUnitTest())
            {
                result = false;
                Console.WriteLine("CubeGridNetworkManager reflection validation failed!");
            }

            if (!CubeBlockEntity.ReflectionUnitTest())
            {
                result = false;
                Console.WriteLine("CubeBlockEntity reflection validation failed!");
            }

            if (!TerminalBlockEntity.ReflectionUnitTest())
            {
                result = false;
                Console.WriteLine("TerminalBlockEntity reflection validation failed!");
            }

            if (!FunctionalBlockEntity.ReflectionUnitTest())
            {
                result = false;
                Console.WriteLine("FunctionalBlockEntity reflection validation failed!");
            }

            if (!SectorObjectManager.ReflectionUnitTest())
            {
                result = false;
                Console.WriteLine("SectorObjectManager reflection validation failed!");
            }

            if (!CharacterEntity.ReflectionUnitTest())
            {
                result = false;
                Console.WriteLine("CharacterEntity reflection validation failed!");
            }

            if (!InventoryEntity.ReflectionUnitTest())
            {
                result = false;
                Console.WriteLine("InventoryEntity reflection validation failed!");
            }

            if (!InventoryItemEntity.ReflectionUnitTest())
            {
                result = false;
                Console.WriteLine("InventoryItemEntity reflection validation failed!");
            }

            if (!PlayerMap.ReflectionUnitTest())
            {
                result = false;
                Console.WriteLine("PlayerMap reflection validation failed!");
            }

            if (!PlayerManager.ReflectionUnitTest())
            {
                result = false;
                Console.WriteLine("PlayerManager reflection validation failed!");
            }

            if (!WorldManager.ReflectionUnitTest())
            {
                result = false;
                Console.WriteLine("WorldManager reflection validation failed!");
            }

            if (!RadioManager.ReflectionUnitTest())
            {
                result = false;
                Console.WriteLine("RadioManager reflection validation failed!");
            }

            if (!RadioManagerNetworkManager.ReflectionUnitTest())
            {
                result = false;
                Console.WriteLine("RadioManagerNetworkManager reflection validation failed!");
            }

            if (!PowerManager.ReflectionUnitTest())
            {
                result = false;
                Console.WriteLine("PowerManager reflection validation failed!");
            }

            if (!FactionsManager.ReflectionUnitTest())
            {
                result = false;
                Console.WriteLine("FactionsManager reflection validation failed!");
            }

            if (!Faction.ReflectionUnitTest())
            {
                result = false;
                Console.WriteLine("Faction reflection validation failed!");
            }

            if (!PowerProducer.ReflectionUnitTest())
            {
                result = false;
                Console.WriteLine("PowerProducer reflection validation failed!");
            }

            if (!PowerReceiver.ReflectionUnitTest())
            {
                result = false;
                Console.WriteLine("PowerReceiver reflection validation failed!");
            }

            result &= RunCubeBlockReflectionTests();

            if (result)
            {
                Console.WriteLine("All main types passed reflection unit tests!");
            }

            return(result);
        }