Exemplo n.º 1
0
        public void SetUp()
        {
            var feats = Feat.LoadFromYaml(FeatYamlFile.ParseYaml());

            Acrobatic       = feats.First(x => x.Name == "Acrobatic");
            CombatExpertise = feats.First(x => x.Name == "Combat Expertise");
            PowerAttack     = feats.First(x => x.Name == "Power Attack");
            CraftWand       = feats.First(x => x.Name == "Craft Wand");
        }
Exemplo n.º 2
0
        public FeatTests()
        {
            var data = FeatYamlFile.ParseYaml();
            var list = new List <Feat>();

            foreach (var c in data.Children)
            {
                list.Add(new Feat(c));
            }

            Acrobatic       = list.First(x => x.Name == "Acrobatic");
            CombatExpertise = list.First(x => x.Name == "Combat Expertise");
            PowerAttack     = list.First(x => x.Name == "Power Attack");
            CraftWand       = list.First(x => x.Name == "Craft Wand");
            MultipleSelect  = list.First(x => x.Name == "Multiple Select");
        }