mirror of
https://github.com/osukey/osukey.git
synced 2025-07-02 00:40:09 +09:00
Use nameof()
in test to reference event names
This commit is contained in:
@ -90,13 +90,13 @@ namespace osu.Game.Tests.Visual.Online
|
|||||||
|
|
||||||
bar.OnChatMessageCommitted += text =>
|
bar.OnChatMessageCommitted += text =>
|
||||||
{
|
{
|
||||||
commitText.Text = $"OnChatMessageCommitted: {text}";
|
commitText.Text = $"{nameof(bar.OnChatMessageCommitted)}: {text}";
|
||||||
commitText.FadeOutFromOne(1000, Easing.InQuint);
|
commitText.FadeOutFromOne(1000, Easing.InQuint);
|
||||||
};
|
};
|
||||||
|
|
||||||
bar.OnSearchTermsChanged += text =>
|
bar.OnSearchTermsChanged += text =>
|
||||||
{
|
{
|
||||||
searchText.Text = $"OnSearchTermsChanged: {text}";
|
searchText.Text = $"{nameof(bar.OnSearchTermsChanged)}: {text}";
|
||||||
};
|
};
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user