You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[TestClass]
class SettingsTests
{
[TestMethod]
public void Notifications()
{
var service = MockSettingsService.Instance;
var notifications = new Queue<SettingChangedEventArgs>();
void OnSettingChanged(object sender, SettingChangedEventArgs e) => notifications.Enqueue(e);
service.SettingChanged += OnSettingChanged;
}
}
Trigger Inline temporary variable refactoring for local service
Expected Behavior:
var notifications = new Queue<SettingChangedEventArgs>();
void OnSettingChanged(object sender, SettingChangedEventArgs e) => notifications.Enqueue(e);
MockSettingsService.Instance.SettingChanged += OnSettingChanged;
Actual Behavior:
var notifications = new Queue<SettingChangedEventArgs>();
void OnSettingChanged(object sender, SettingChangedEventArgs e) => notifications.Enqueue(e);
MockSettingsService.Instance.SettingChanged += SettingsTests.OnSettingChanged;
The text was updated successfully, but these errors were encountered:
Version Used: 16.0.0 Int Preview [28320.52.d16.0]
Steps to Reproduce:
Inline temporary variable
refactoring for localservice
Expected Behavior:
Actual Behavior:
The text was updated successfully, but these errors were encountered: