コード例 #1
0
        public void ShouldReturnIntellegenceAttributeScores()
        {
            //arrange
            ICharacterAttribute expectedAttribute = new IntellegenceAttribute();

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

            //assert
            actualAttribute.Should().Be(intellegenceAttribute);
        }
コード例 #3
0
        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);
        }
コード例 #4
0
        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);
        }
コード例 #5
0
 public Arcana(IntellegenceAttribute intellegenceAttribute, bool activateSkill = false) : base(new TextObj("Arcana"), intellegenceAttribute, activateSkill)
 {
 }
コード例 #6
0
 public Religion(IntellegenceAttribute intellegenceAttribute, bool activateSkill = false) : base(new TextObj("Religion"), intellegenceAttribute, activateSkill)
 {
 }
コード例 #7
0
ファイル: Nature.cs プロジェクト: MyTurnyet/CharacterBuilder
 public Nature(IntellegenceAttribute intellegenceAttribute, bool activateSkill = false) : base(new TextObj("Nature"), intellegenceAttribute, activateSkill)
 {
 }
コード例 #8
0
ファイル: History.cs プロジェクト: MyTurnyet/CharacterBuilder
 public History(IntellegenceAttribute intellegenceAttribute, bool activateSkill = false) : base(new TextObj("History"), intellegenceAttribute, activateSkill)
 {
 }
コード例 #9
0
 public Investigation(IntellegenceAttribute intellegenceAttribute, bool activateSkill = false) : base(new TextObj("Investigation"), intellegenceAttribute, activateSkill)
 {
 }