public CharacterTrait(TypeOfTrait typeOfTrait, int points) { this.TypeOfTrait = typeOfTrait; this.SetPoints(points); }
public void ShouldNotValidateWhenPointsIsNotWithinRange(TypeOfTrait typeOfTrait, int points) { var trait = new CharacterTrait(typeOfTrait, points); unitToTest.ShouldHaveValidationErrorFor(x => x.Points, trait); }