Add test for custom ruleset conversion filtering

This commit is contained in:
Derrick Timmermans 2022-01-26 16:14:07 +01:00
parent 873d367615
commit e712fab299
No known key found for this signature in database
GPG Key ID: 8681B60806EF4A17
1 changed files with 14 additions and 0 deletions

View File

@ -78,6 +78,20 @@ public void TestCriteriaMatchingConvertedBeatmaps()
Assert.IsFalse(carouselItem.Filtered.Value);
}
[Test]
public void TestCriteriaMatchingConvertedBeatmapsForCustomRulesets()
{
var exampleBeatmapInfo = getExampleBeatmap();
var criteria = new FilterCriteria
{
Ruleset = new RulesetInfo { OnlineID = -25 },
AllowConvertedBeatmaps = true
};
var carouselItem = new CarouselBeatmap(exampleBeatmapInfo);
carouselItem.Filter(criteria);
Assert.IsFalse(carouselItem.Filtered.Value);
}
[Test]
[TestCase(true)]
[TestCase(false)]