public void TestWarp() { for (int i = 0; i < 4; i++) { for (int j = 0; j < 9; j++) { string map = string.Format("E{0}M{1}", i + 1, j + 1); Assert.AreEqual(GameFilePlayAdapter.BuildWarpParamter(map), string.Format(" -warp {0} {1}", i + 1, j + 1)); } } for (int i = 0; i < 32; i++) { string map = null; if (i + 1 > 9) { map = string.Format("MAP{0}", i + 1); } else { map = string.Format("MAP0{0}", i + 1); } Assert.AreEqual(GameFilePlayAdapter.BuildWarpParamter(map), string.Format(" -warp {0}", i + 1)); } Assert.AreEqual(" -warp 0", GameFilePlayAdapter.BuildWarpParamter("MAP00")); }
public void TestMap() { Assert.AreEqual(" +map START", GameFilePlayAdapter.BuildWarpParamter("START")); Assert.AreEqual(" +map MAPSTART", GameFilePlayAdapter.BuildWarpParamter("MAPSTART")); Assert.AreEqual(" +map MAP01START", GameFilePlayAdapter.BuildWarpParamter("MAP01START")); Assert.AreEqual(" +map MAP1", GameFilePlayAdapter.BuildWarpParamter("MAP1")); Assert.AreEqual(" +map MAP001", GameFilePlayAdapter.BuildWarpParamter("MAP001")); }