public void ShouldReturnCharismaAttributeScores()
        {
            //arrange
            ICharacterAttribute expectedAttribute = new CharismaAttribute();

            //assert
            _attributeSet.MatchesName(CharacterAttributeName.Charisma).Should().Be(expectedAttribute);
        }
        public void ShouldReturnBaseAttribute()
        {
            //arrange
            ISkill skill = new Intimidation();
            ICharacterAttribute charismaAttribute = new CharismaAttribute();
            //act
            ICharacterAttribute actualAttribute = skill.BaseAttribute();

            //assert
            actualAttribute.Should().Be(charismaAttribute);
        }
        public void ShouldReturnBonusOfBaseAttribute()
        {
            //arrange
            CharismaAttribute dexterityAttribute = new CharismaAttribute(new AttributeScore(14));
            ISkill            intimidation       = new Intimidation(dexterityAttribute);
            IAttributeScore   expectedScore      = new AttributeScore(2);
            //act
            IAttributeScore actualScore = intimidation.SkillBonus();

            //assert
            actualScore.Should().Be(expectedScore);
        }
        public void ShouldReturnBonusOfBaseAttribute()
        {
            //arrange
            CharismaAttribute charismaAttribute = new CharismaAttribute(new AttributeScore(14));
            ISkill            deception         = new Deception(charismaAttribute, false);
            IAttributeScore   expectedScore     = new AttributeScore(2);
            //act
            IAttributeScore actualScore = deception.SkillBonus();

            //assert
            actualScore.Should().Be(expectedScore);
        }
        public void ShouldReturnBonusOfBaseAttribute()
        {
            //arrange
            CharismaAttribute dexterityAttribute = new CharismaAttribute(new AttributeScore(14));
            ISkill            performance        = new Performance(dexterityAttribute);
            IAttributeScore   expectedScore      = new AttributeScore(2);
            //act
            IAttributeScore actualScore = performance.SkillBonus();

            //assert
            actualScore.Should().Be(expectedScore);
        }
Ejemplo n.º 6
0
 public Intimidation(CharismaAttribute charismaAttribute, bool activateSkill = false) : base(new TextObj("Intimidation"), charismaAttribute, activateSkill)
 {
 }
Ejemplo n.º 7
0
 public Performance(CharismaAttribute charismaAttribute, bool activateSkill = false) : base(new TextObj("Performance"), charismaAttribute, activateSkill)
 {
 }
Ejemplo n.º 8
0
 public Persuasion(CharismaAttribute charismaAttribute, bool activateSkill = false) : base(new TextObj("Persuasion"), charismaAttribute, activateSkill)
 {
 }
Ejemplo n.º 9
0
 public Deception(CharismaAttribute charismaAttribute, bool activateSkill = false) : base(new TextObj("Deception"), charismaAttribute, activateSkill)
 {
 }