public void ShouldReturnIntellegenceAttributeScores()
        {
            //arrange
            ICharacterAttribute expectedAttribute = new IntellegenceAttribute();

            //assert
            _attributeSet.MatchesName(CharacterAttributeName.Intelligence).Should().Be(expectedAttribute);
        }
        public void ShouldReturnWisdomAsBaseAttribute()
        {
            //arrange
            ISkill skill = new History();
            ICharacterAttribute intellegenceAttribute = new IntellegenceAttribute();
            //act
            ICharacterAttribute actualAttribute = skill.BaseAttribute();

            //assert
            actualAttribute.Should().Be(intellegenceAttribute);
        }
        public void ShouldReturnBonusOfBaseAttribute()
        {
            //arrange
            IntellegenceAttribute intellegenceAttribute = new IntellegenceAttribute(new AttributeScore(14));
            ISkill          history       = new History(intellegenceAttribute);
            IAttributeScore expectedScore = new AttributeScore(2);
            //act
            IAttributeScore actualScore = history.SkillBonus();

            //assert
            actualScore.Should().Be(expectedScore);
        }
        public void ShouldReturnBonusOfBaseAttribute()
        {
            //arrange
            IntellegenceAttribute intellegenceAttribute = new IntellegenceAttribute(new AttributeScore(14));
            ISkill          investigation = new Investigation(intellegenceAttribute);
            IAttributeScore expectedScore = new AttributeScore(2);
            //act
            IAttributeScore actualScore = investigation.SkillBonus();

            //assert
            actualScore.Should().Be(expectedScore);
        }
Ejemplo n.º 5
0
 public Arcana(IntellegenceAttribute intellegenceAttribute, bool activateSkill = false) : base(new TextObj("Arcana"), intellegenceAttribute, activateSkill)
 {
 }
Ejemplo n.º 6
0
 public Religion(IntellegenceAttribute intellegenceAttribute, bool activateSkill = false) : base(new TextObj("Religion"), intellegenceAttribute, activateSkill)
 {
 }
Ejemplo n.º 7
0
 public Nature(IntellegenceAttribute intellegenceAttribute, bool activateSkill = false) : base(new TextObj("Nature"), intellegenceAttribute, activateSkill)
 {
 }
Ejemplo n.º 8
0
 public History(IntellegenceAttribute intellegenceAttribute, bool activateSkill = false) : base(new TextObj("History"), intellegenceAttribute, activateSkill)
 {
 }
Ejemplo n.º 9
0
 public Investigation(IntellegenceAttribute intellegenceAttribute, bool activateSkill = false) : base(new TextObj("Investigation"), intellegenceAttribute, activateSkill)
 {
 }