public void FilterPlaylistApplyRatingFilter() { var lib = CreateLibrary(); var fpl = new FilterPlaylist(lib, "fpl 1"); var filter = new RatingFilter(3, true, false); fpl.Filters.Add(filter); fpl.FilterLibrary(); Assert.AreEqual(1, fpl.NumSongs); filter.SetParams(3, true, true); fpl.FilterLibrary(); Assert.AreEqual(2, fpl.NumSongs); filter.SetParams(3, false, true); fpl.FilterLibrary(); Assert.AreEqual(2, fpl.NumSongs); filter.SetParams(3, false, false); fpl.FilterLibrary(); Assert.AreEqual(1, fpl.NumSongs); }