Beispiel #1
0
        public void CalculateStarTemeperatureForMaxMassAndMaxRadiusTest()
        {
            var result         = GalaxyProceduralGeneratorCalculateMethods.CalculateStarTemeperature(settings, settings.StarMassMaximum, settings.StarRadiusMaximum);
            var exceptedResult = settings.StarTemperatureMinimum + (settings.StarTemperatureMaximum - settings.StarTemperatureMinimum) / 2;

            Assert.AreEqual(exceptedResult, result);
        }
Beispiel #2
0
        public void CalculateIsPlanetHasDenseAtmosphereTest()
        {
            GalaxyProceduralGeneratorCalculateMethods.CalculateIsPlanetHasDenseAtmosphere(settings, 4.867e24, 737);
            var result         = GalaxyProceduralGeneratorCalculateMethods.CalculateStarTemeperature(settings, settings.StarMassMaximum, settings.StarRadiusMaximum);
            var exceptedResult = settings.StarTemperatureMinimum + (settings.StarTemperatureMaximum - settings.StarTemperatureMinimum) / 2;

            Assert.AreEqual(exceptedResult, result);
        }
Beispiel #3
0
        public void CalculateStarTemeperatureForMaxMassAndMinRadiusTest()
        {
            var result = GalaxyProceduralGeneratorCalculateMethods.CalculateStarTemeperature(settings, settings.StarMassMaximum, settings.StarRadiusMinimum);

            Assert.AreEqual(settings.StarTemperatureMaximum, result);
        }