1
0
mirror of https://github.com/ppy/osu.git synced 2024-11-12 02:27:25 +08:00

Complying with rule "Instance fields (private)"

This commit is contained in:
Alex Amadori 2017-02-18 16:45:46 +01:00
parent 21cf96ec10
commit 87ec0e36ea

View File

@ -16,7 +16,7 @@ namespace osu.Desktop.VisualTests.Tests
private BeatmapDatabase db, oldDb;
private TestStorage storage;
private Random rnd = new Random();
private PlaySongSelect SongSelect;
private PlaySongSelect songSelect;
public override string Name => @"Song Select";
public override string Description => @"with fake data";
@ -44,11 +44,11 @@ namespace osu.Desktop.VisualTests.Tests
db.Import(sets);
}
Add(SongSelect = new PlaySongSelect());
OnArtist = () => { SongSelect.Filter.Sort = FilterControl.SortMode.Artist; };
OnTitle = () => { SongSelect.Filter.Sort = FilterControl.SortMode.Title; };
OnAuthor = () => { SongSelect.Filter.Sort = FilterControl.SortMode.Author; };
OnDifficulty = () => { SongSelect.Filter.Sort = FilterControl.SortMode.Difficulty; };
Add(songSelect = new PlaySongSelect());
OnArtist = () => { songSelect.Filter.Sort = FilterControl.SortMode.Artist; };
OnTitle = () => { songSelect.Filter.Sort = FilterControl.SortMode.Title; };
OnAuthor = () => { songSelect.Filter.Sort = FilterControl.SortMode.Author; };
OnDifficulty = () => { songSelect.Filter.Sort = FilterControl.SortMode.Difficulty; };
AddButton(@"Sort by Artist", OnArtist);
AddButton(@"Sort by Title", OnTitle);