Exemplo n.º 1
0
        private RequiredSkillSelection ParseRequiredSkillData(TypeAndAmountSelection selection)
        {
            var splitData     = SkillConstants.Parse(selection.Type);
            var requiredSkill = new RequiredSkillSelection();

            requiredSkill.Skill = splitData[0];
            requiredSkill.Ranks = selection.Amount;

            if (splitData.Length > 1)
            {
                requiredSkill.Focus = splitData[1];
            }

            return(requiredSkill);
        }
Exemplo n.º 2
0
        public void ParseSkillString(string skillString, params string[] expected)
        {
            var sections = SkillConstants.Parse(skillString);

            Assert.That(sections, Is.EqualTo(expected));
        }