Ejemplo n.º 1
0
        public void PSample5()
        {
            //In this sample on line 128 there is a KeyValue pair without a space
            //between the key and the value.

            //Check that value and make sure it returns 50.

            KeyValue kv = KVTestHelper.Sample5(new PenguinParser());

            Assert.AreEqual("DOTAUnits", kv.Key);

            KeyValue SpecialKey = kv["npc_dota_creature_berserk_zombie"]["Creature"]["DefensiveAbilities"]["Ability1"];

            Assert.AreEqual(50, SpecialKey["UseAtHealthPercent"].GetInt());
        }