Example #1
0
        public void CreateEarthTest()
        {
            ProgressionMap map = new ProgressionMap("Earth");

            LocalSectorMap csol  = new LocalSectorMap(map);
            Planet         earth = csol.CreateEarth();
        }
Example #2
0
        public void SerializeFileEarth()
        {
            ProgressionMap map = new ProgressionMap("Earth");
            LocalSectorMap c   = new LocalSectorMap(map);

            c.CreateEarth();

            string filename = Path.Combine(TestingUtilities.Config["DataPath"], "Earth.json");

            if (File.Exists(filename))
            {
                File.Delete(filename);
            }

            using StreamWriter writer = new StreamWriter(filename);
            SerializeMap(map, writer);
        }