Exemplo n.º 1
0
        public void ShouldReturnSavingThrows()
        {
            //assign
            List <ISavingThrowAttribute> expectedThrowAttributes = new List <ISavingThrowAttribute>
            {
                SavingThrowAttribute.Intellegence,
                SavingThrowAttribute.Wisdom
            };
            //act
            List <ISavingThrowAttribute> savingThrows = new Wizard().SavingThrows();

            //assert
            savingThrows.All(i => expectedThrowAttributes.Contains(i)).Should().BeTrue();
        }
Exemplo n.º 2
0
        public void ShouldReturnProficiencies()
        {
            //arrange
            List <IProficiency> expectedProf = new List <IProficiency>
            {
                new Dagger(),
                new Darts(),
                new Sling(),
                new Quarterstaff(),
                new LightCrossbow()
            };
            //act
            List <IProficiency> actualProfs = new Wizard().Proficiencies();

            //assert
            actualProfs.All(i => expectedProf.Contains(i)).Should().BeTrue();
        }
Exemplo n.º 3
0
        public void ShouldReturnSkillList()
        {
            //assign
            List <ISkill> expectedSkills = new List <ISkill>
            {
                new Arcana(),
                new History(),
                new Insight(),
                new Investigation(),
                new Medicine(),
                new Religion()
            };
            //act
            List <ISkill> actualSkills = new Wizard().Skills();

            //assert
            actualSkills.All(i => expectedSkills.Contains(i)).Should().BeTrue();
        }