Ejemplo n.º 1
0
        public void ShouldNotMatchName()
        {
            //assign
            ICharacterAttribute attribute = new StrengthAttribute(new AttributeScore(18));
            //act
            bool matchesName = attribute.MatchesName(CharacterAttributeName.Dexterity);

            //assert
            matchesName.Should().BeFalse();
        }
Ejemplo n.º 2
0
        public void ShouldMatchName()
        {
            //assign
            ICharacterAttribute attribute = new StrengthAttribute(new AttributeScore(18));
            //act
            bool matchesName = attribute.MatchesName(CharacterAttributeName.Strength);

            //assert
            matchesName.Should().BeTrue();
        }