コード例 #1
0
ファイル: CreateTests.cs プロジェクト: ErgodicMage/StellarMap
        public void CreateEarthTest()
        {
            ProgressionMap map = new ProgressionMap("Earth");

            LocalSectorMap csol  = new LocalSectorMap(map);
            Planet         earth = csol.CreateEarth();
        }
コード例 #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);
        }