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:
parent
970b1951ac
commit
6d1844adc3
@ -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}";
|
||||
};
|
||||
});
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user