Пример #1
0
 public SkillScore(Character character, Skill skill, uint ranks = 0, IEnumerable<string> foci = null)
     : base(ranks, null)
 {
     Skill = skill;
     AttributeScore = character.GetAttributeScore(skill.PrimaryAttribute);
     Foci = new HashSet<string>(foci ?? new string[] { });
 }
Пример #2
0
 public void TestFullName(string baseName, string specialization, string expectedName)
 {
     var skill = new Skill("test", baseName, specialization, Attributes.Prowess);
     Assert.That(skill.FullName, Is.EqualTo(expectedName));
 }
Пример #3
0
 public void TestKey(string baseKey, string specialization, string expectedKey)
 {
     var skill = new Skill(baseKey, "Test", specialization, Attributes.Prowess);
     Assert.That(skill.CompoundKey, Is.EqualTo(expectedKey));
 }