Ejemplo n.º 1
0
        public void TestSaveLoadListProperty()
        {
            SettingMgr settingMgr = new SettingMgr(_LogMgr);

            using (IDbConnection conn = new OraConnection())
            {
                conn.OpenConnection("chipanddale", "chipanddale", "xe");
                IDbMgr dbManager = new OraDBMgr(conn, _LogMgr);

                settingMgr.ReadWriteProvider = new OraDBSettingReadWriter(dbManager, _LogMgr);

                SettingListProperties setting = new SettingListProperties();
                setting.Init();
                SettingListProperties setting2 = new SettingListProperties();

                settingMgr.SaveSettings("User2", "Section1", "Subsection1", setting);
                settingMgr.LoadSetting("User2", "Section1", "Subsection1", setting2);

                Debug.Assert(setting.Equals(setting2), "2. Saved and loaded settings are not equal (List types).");
            }
        }
Ejemplo n.º 2
0
 public void Config()
 {
     SettingMgr.Config();
     GlobalMgr.Config();
     ProfilerManager.Config("/Users/yinhuayong/Desktop", "test.txt");
 }
Ejemplo n.º 3
0
 private void Awake()
 {
     _settingMgr = SettingMgr.Instance;
 }