Пример #1
0
        public void Should_Create_Character_Return_Exception_On_Invoking_RacialSkill()
        {
            var character = new CharacterMock(Gender.Male, "Dualist", 10000);

            character.Gender.Should().Be(Gender.Male);
            character.Name.Should().Be("Dualist");
            character.HitPoints.Should().Be(10000);
            character.RacialSkills.Invoking(y => y.Count).Should().Throw <NullReferenceException>();
        }
Пример #2
0
        public void Should_Create_Character_Without_Exception()
        {
            var character = new CharacterMock(Gender.Female, "Layala", 10000,
                                              ClassType.Priest,
                                              RaceType.BloodElf,
                                              1000,
                                              new List <string>()
            {
                "Arcane Acuity", "Arcane Affinity"
            });

            character.Gender.Should().Be(Gender.Female);
            character.RaceType.Should().Be(RaceType.BloodElf);
            character.ClassType.Should().Be(ClassType.Priest);
            character.RacialSkills.Count.Should().Be(2);
            character.HitPoints.Should().Be(10000);
        }