1
0
mirror of https://github.com/ppy/osu.git synced 2025-02-15 14:33:01 +08:00

Use nameof() in test to reference event names

This commit is contained in:
Bartłomiej Dach 2022-04-03 14:27:37 +02:00
parent 970b1951ac
commit 6d1844adc3
No known key found for this signature in database
GPG Key ID: BCECCD4FA41F6497

View File

@ -90,13 +90,13 @@ namespace osu.Game.Tests.Visual.Online
bar.OnChatMessageCommitted += text =>
{
commitText.Text = $"OnChatMessageCommitted: {text}";
commitText.Text = $"{nameof(bar.OnChatMessageCommitted)}: {text}";
commitText.FadeOutFromOne(1000, Easing.InQuint);
};
bar.OnSearchTermsChanged += text =>
{
searchText.Text = $"OnSearchTermsChanged: {text}";
searchText.Text = $"{nameof(bar.OnSearchTermsChanged)}: {text}";
};
});
}