Missing Age Ratings (#955)
* Fixed GetTags having wrong return type defined * Added missing Age Rating tags
This commit is contained in:
parent
785a1ef5c4
commit
fadfab0fba
2 changed files with 14 additions and 8 deletions
|
@ -22,6 +22,8 @@ public class ComicInfoTests
|
|||
[InlineData("X18+", AgeRating.X18Plus)]
|
||||
[InlineData("Kids to Adults", AgeRating.KidsToAdults)]
|
||||
[InlineData("NotValid", AgeRating.Unknown)]
|
||||
[InlineData("PG", AgeRating.PG)]
|
||||
[InlineData("R18+", AgeRating.R18Plus)]
|
||||
public void ConvertAgeRatingToEnum_ShouldConvertCorrectly(string input, AgeRating expected)
|
||||
{
|
||||
Assert.Equal(expected, ComicInfo.ConvertAgeRatingToEnum(input));
|
||||
|
@ -30,7 +32,7 @@ public class ComicInfoTests
|
|||
[Fact]
|
||||
public void ConvertAgeRatingToEnum_ShouldCompareCaseInsensitive()
|
||||
{
|
||||
Assert.Equal(AgeRating.Mature, ComicInfo.ConvertAgeRatingToEnum("mature"));
|
||||
Assert.Equal(AgeRating.RatingPending, ComicInfo.ConvertAgeRatingToEnum("rating pending"));
|
||||
}
|
||||
#endregion
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue