예제 #1
0
        public void SettingsManagerTestIndexingTest()
        {
            var manager = new SettingsManager(null);

            const string settingKey   = "TestSetting";
            const int    settingValue = 345;

            var s = new IntSetting()
            {
                Category           = "none",
                HumanReadableName  = "none",
                Description        = "none",
                IdentificationName = settingKey,
                Value = settingValue
            };

            manager.AddSetting(s);

            Assert.AreEqual(settingValue, (int)manager[settingKey]);
        }