コード例 #1
0
        public void ShouldReturnName()
        {
            //assign
            ISkill actualSkillBase = new Intimidation();
            //act
            ITextObj name = actualSkillBase.Name();

            //assert
            name.Should().Be(new TextObj("Intimidation"));
        }
コード例 #2
0
        public void ShouldReturnName()
        {
            //assign
            ISkill actualSkillBase = new Performance();
            //act
            ITextObj name = actualSkillBase.Name();

            //assert
            name.Should().Be(new TextObj("Performance"));
        }
コード例 #3
0
        public void ShouldReturnName()
        {
            //assign
            ISkill actualSkillBase = new Medicine();
            //act
            ITextObj name = actualSkillBase.Name();

            //assert
            name.Should().Be(new TextObj("Medicine"));
        }
コード例 #4
0
        public void ShouldReturnName()
        {
            //assign
            ISkill actualSkillBase = new Athletics();
            //act
            ITextObj name = actualSkillBase.Name();

            //assert
            name.Should().Be(new TextObj("Athletics"));
        }
コード例 #5
0
        public void ShouldReturnName()
        {
            //assign
            ISkill actualSkillBase = new AnimalHandling();
            //act
            ITextObj name = actualSkillBase.Name();

            //assert
            name.Should().Be(new TextObj("Animal Handling"));
        }
コード例 #6
0
        public void ShouldReturnName()
        {
            //assign
            ISkill actualSkillBase = new Survival();
            //act
            ITextObj name = actualSkillBase.Name();

            //assert
            name.Should().Be(new TextObj("Survival"));
        }
コード例 #7
0
        public void ShouldReturnName()
        {
            //assign
            ISkill actualSkillBase = new SleightOfHand();
            //act
            ITextObj name = actualSkillBase.Name();

            //assert
            name.Should().Be(new TextObj("Sleight Of Hand"));
        }
コード例 #8
0
        public void ShouldReturnName()
        {
            //arrange
            ICharacterClass classFighter = new Fighter();
            //act
            ITextObj actualName = classFighter.Name();

            //assert
            actualName.Should().Be(new TextObj("Fighter"));
        }
コード例 #9
0
        public void ShouldReturnName()
        {
            //assign
            ISkill actualSkillBase = new History();
            //act
            ITextObj name = actualSkillBase.Name();

            //assert
            name.Should().Be(new TextObj("History"));
        }
コード例 #10
0
        public void ShouldReturnName()
        {
            //assign
            ICharacterRace race = CharacterRace.Human;

            //assert
            ITextObj name = race.Name();

            name.Should().Be(new TextObj("Human"));
        }
コード例 #11
0
        public void ShouldReturnCorrectStatsList()
        {
            //assign
            _characterSheet = new CharacterSheet(new Wizard(), new HillDwarf(), _attributeSet);
            TextObj expectedTextOf = new TextObj("This Works!");
            //act
            ITextObj actualTextOf = _characterSheet.StatsList();

            //assert
            actualTextOf.Should().Be(expectedTextOf);
        }
コード例 #12
0
        public void ShouldAppendNewLine()
        {
            //arrange
            ITextObj textObj         = new TextObj("test");
            ITextObj newLineObj      = new NewLineTextObj();
            ITextObj expectedTextObj = new TextObj("test\r\ntest");
            //act
            ITextObj actualTextObj = textObj.Append(newLineObj).Append(textObj);

            //assert
            actualTextObj.Should().Be(expectedTextObj);
        }
コード例 #13
0
        public void ShouldAppendTextOfObjects()
        {
            //arrange
            ITextObj textObj       = new TextObj("test");
            ITextObj textObjAppend = new TextObj("output");
            ITextObj expected      = new TextObj("testoutput");
            //act
            ITextObj actual = textObj.Append(textObjAppend);

            //assert
            actual.Should().Be(expected);
        }
コード例 #14
0
        public void ShouldReturnTextOfStats()
        {
            //TODO: add all stats
            //assign
            ITextObj expectedtTextObj = new TextObj("STR: 11\r\nDEX: 0\r\nCON: 0\r\nINT: 0");

            _attributeSet.SetAttribute(CharacterAttributeName.Strength, new AttributeScore(11));
            //act
            ITextObj actualTextObj = _attributeSet.DisplayText();

            //assert
            actualTextObj.Should().Be(expectedtTextObj);
        }