コード例 #1
0
        public void SetValue_SetDMFlag_ValueAddedToConfig()
        {
            SkulltagConfig config = new SkulltagConfig();

            DMFlags key = DMFlags.AllowCrouching;
            bool value = true;

            config.SetValue(key, value);

            bool somevalue = config.DMFlags[key];

            Assert.IsTrue(somevalue);
        }
コード例 #2
0
        public void SetValue_SetStringValue_ValueAddedToConfig()
        {
            SkulltagConfig config = new SkulltagConfig();

            string key = "hello pickles";
            string value = "why hello there";

            config.SetValue(key, value);

            string somevalue = config.StringValues[key];

            Assert.AreEqual(somevalue, value);
        }
コード例 #3
0
        public void SetValue_SetCompatFlags_ValueAddedToConfig()
        {
            SkulltagConfig config = new SkulltagConfig();

            CompatFlags key = CompatFlags.DisableBoomDoorLightEffect;
            bool value = true;

            config.SetValue(key, value);

            bool somevalue = config.CompatFlags[key];

            Assert.IsTrue(somevalue);
        }