コード例 #1
0
        public void ChangeCoordinatesOfSolarSystemByOneDayBefore()
        {
            CoordinatesTriger trg = new CoordinatesTriger();
            Galaxy            g   = new Galaxy();

            g.CreateNormalGalaxy();
            //One day changes
            SolarSystem            ps     = g.SolarSystems.ToArray()[1];
            Tuple <double, double> result = trg.ChangeCoordinatesOfSolarSystemByOneDayBefore(g.SolarSystems.ToArray()[1]);

            Assert.AreEqual(Math.Round(result.Item1, 3), Math.Round(399.972352, 3));
            Assert.AreEqual(Math.Round(result.Item2, 3), Math.Round(-260.027648, 3));
        }
コード例 #2
0
        public void ChangeCoordinatesOfPlanetSystemByOneDayBefore()
        {
            CoordinatesTriger trg = new CoordinatesTriger();
            Galaxy            g   = new Galaxy();

            g.CreateNormalGalaxy();
            //One day changes
            PlanetSystem           ps     = g.SolarSystems.ToArray()[1].Planets.ToArray()[3];
            Tuple <double, double> result = trg.ChangeCoordinatesOfPlanetSystemByOneDayBefore(ps, g.SolarSystems.ToArray()[1]);

            Assert.AreEqual(Math.Round(result.Item1, 3), Math.Round(249.19737775501, 3));
            Assert.AreEqual(Math.Round(result.Item2, 3), Math.Round(-1.8895, 3));
        }
コード例 #3
0
 public DateAndTime()
 {
     _triger = new CoordinatesTriger();
     _data   = new DateTime(2492, 5, 6, 1, 0, 0);
 }