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
1 changed files with 2 additions and 2 deletions

View File

@ -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}";
};
});
}