Beispiel #1
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);
        }
Beispiel #2
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);
        }