示例#1
0
        public void TestUnitDB()
        {
            string data = TestContext.RootPath + "Resources/MtUnit.txt";

            data = File.ReadAllText(data);
            Assert.NotZero(data.Length);

            UnitDB.Init(data);
            Assert.NotZero(UnitDB.Instance.Count);
            Assert.True(UnitDB.Instance.ContainsKey("[Character]akizuki_ritsukoA"));
            Assert.AreEqual(UnitType.Vi, UnitDB.Instance["[Character]akizuki_ritsukoA"].UnitType);
        }
示例#2
0
        public void Setup()
        {
            string unitData = System.IO.File.ReadAllText("../../../Resources/MtUnit.txt");

            UnitDB.Init(unitData);
        }