mirror of https://github.com/ppy/osu
Use `nameof()` in test to reference event names
This commit is contained in:
parent
970b1951ac
commit
6d1844adc3
|
@ -90,13 +90,13 @@ public void SetUp()
|
|||
|
||||
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